I found an error where the following statement below breaks unless the “Property_Count_Result” = a two digit number:
(${Property_Count_Result}>${LOW} && ${Property_Count_Result}<${HIGH})
Here is an example:
LOW = 30
HIGH = 60
Property_Count_Result = 22
The solution works correctly and skips the if_v2 statement and moves to > Else > END; as the number does not fall between 30 and 60.
LOW = 30
HIGH = 60
Property_Count_Result = 40
The solution works correctly and runs through the if_v2 statement as the number falls between 30 and 60.
However, the following example BREAKS:
LOW = 30
HIGH = 60
Property_Count_Result = 5
If the number, is a single digit it will continue running through the if_v2 statement as if the number falls between 30 and 60. This issue only happens on single digit numbers. Below I have provided the code for this scenario:
,
{
"Command": "comment",
"Target": "Begin Property # Algorithm",
"Value": "",
"Description": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "var mystring = ${Master_Property_Count}; var replaced = mystring.replace(/\\D/g, ''); return replaced",
"Value": "Property_Count_Result",
"Description": ""
},
{
"Command": "comment",
"Target": "Set Property # Limits",
"Value": "",
"Description": ""
},
{
"Command": "store",
"Target": "30",
"Value": "LOW",
"Description": "Set the lowest allowed property count"
},
{
"Command": "store",
"Target": "60",
"Value": "HIGH",
"Description": "set the highest allowed property count"
},
{
"Command": "comment",
"Target": "If Property # Correct > SEND EMAIL",
"Value": "",
"Description": ""
},
{
"Command": "if_v2",
"Target": "(${Property_Count_Result}>${LOW} && ${Property_Count_Result}<${HIGH})",
"Value": "",
"Description": "Greater than \"LOW\" and Less than \"HIGH\""
},
{
"Command": "comment",
"Target": "Select ALL Properties",
"Value": "",
"Description": ""
},