Hello kind and helpful Rev users,
I'm trying to use the operator "greater than or equal to" in a script as follows:
put the first character of line x of field "theField" into whichChar
put charToNum(whichChar) into whatCase
if whatCase is >= 65 then
put whatCase into message
I get a compilation error at line (if whatCase...then) (Expression: double binary operator) near ">=", near character (the space before the 65).
What does "double binary operator" mean? (I tried compiling with only a ">" and still got the same error.) Where did I go wrong?
Thank you for any help!
Logical operator isn't operating!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Aha!
Thank you, Obleo!
I appreciate that!
I appreciate that!
The word "is" in Rev is a synonym for "=" allowing you to use English in an expression such as:Mistfall wrote: What does "double binary operator" mean?
if x is 34 then
or
if x = 34 then
so you got a "double binary operator" error from Rev because you're expression:
if whatCase is >= 65 then put whatCase into message...
had essentially both "=" and ">=" (two binary operators)
Rev saw it as:
if whatCase = >= 65 then put whatCase into message...
When reading >=, the word "is" in implied but not included in the code, as it is in most other programming languages.
In Rev, you can use "=" or in your case ">=" OR "is" but not both.