Variable is the most fundamental element of visual parser, the value of which is visual parser aiming to parse.
The following table introduces the available data types of parser variables and their formats. The general format is $variable_type:variable_name (exception: Enumeration).
Variable Type |
Description |
Variable Format |
---|---|---|
String |
Match any single word. |
$string:var1 or |
Multi-string |
Match one or multiple words. |
$mstring:var2 |
Integer |
Match any whole number. |
$int:var3 |
Float/Double |
Match any double-precision IEEE 64-bit (8-byte) floating-point number. |
$float:var4 or $double:var4 |
Boolean |
A variable with possible value options “true”, “false”, 1 or 0. |
$bool:var5 |
Match one of the listed options of a variable. |
$var6(value1|value2) |
|
A placeholder for an uninterested variable that will not be parsed. |
$type:_dummy |
Note: A variable name can only contain letters, numbers, and underlines, and can only start with a letter or underline.
Note: The variable types (Multi-string and Enumeration) are variants of string-type variables and will be treated as a string in further automation.
Tip: NetBrain provides built-in functions to support the definition of compound variables. Refer to the Appendix for more details.