Navigation: Full Administrators > Scan2x Job-Admin >

VB.NET & C# Scripts

 

 

 

 

VB.NET & C# Scripts

 

If a multiline script is being written, the statement that populates the metadata field (i.e. RETURN) needs to be the last statement in the script.

 

A script that occupies a single line does NOT need a RETURN statement. For example:

If(keyword = "XYZ", "123", "456")

 

However, if you want to create a multiline script, you need to end with a RETURN statement. See below and note how the mandatory RETURN statement is used:

Dim res = ""

If(keyword = "XYZ") Then

res = "123"

Else

res = "456"

End If

Return res

 

For more information, please look at the C# and VB.NET Expression Builder Tab in the Scan2x Handbook.

 

 

 

Copyright © 2022 Avantech Software