|
Post by cmolstad on Jan 17, 2019 15:24:32 GMT
I'm trying to do a more complex condition than I usually do and having problems with the syntax. In the below example, "Latitude" needs to be there for sure and either 7202 OR 7212.
Condition='InStr("%XHWModel%","Latitude") > 0 AND InStr("%XHWModel%","7202") > 0 OR InStr("%XHWModel%","7212") > 0'
I tried the following but neither worked:
Condition='"InStr("%XHWModel%","Latitude") > 0" AND InStr("%XHWModel%","7202") > 0 OR InStr("%XHWModel%","7212") > 0' Condition='"InStr("%XHWModel%","Latitude") > 0" AND "InStr("%XHWModel%","7202") > 0 OR InStr("%XHWModel%","7212") > 0"'
What am I doing wrong?
|
|
|
Post by Jason on Jan 18, 2019 1:41:46 GMT
Try this:
Condition='InStr("%XHWModel%","Latitude") > 0 AND (InStr("%XHWModel%","7202") > 0 OR InStr("%XHWModel%","7212") > 0)'
|
|
|
Post by cmolstad on Jan 18, 2019 13:13:32 GMT
Thanks Jason, I totally forgot to try the parenthesis! That worked.
|
|