Hello,
I would like to understand, how the boolean works?
For example, I have two variables: (number1 and number2)
If number1 is smaller than number2, it's TRUE else it's FALSE.
My error message is "RNF7416: The types of the right and left hand side do not match in the EVAL operation. "
My problems are in the line Flag = 1; and Flag = 0;
I thank you for your help.
I would like to understand, how the boolean works?
For example, I have two variables: (number1 and number2)
If number1 is smaller than number2, it's TRUE else it's FALSE.
My error message is "RNF7416: The types of the right and left hand side do not match in the EVAL operation. "
My problems are in the line Flag = 1; and Flag = 0;
Code:
H D Number1 S 3S 0 D Number2 S 3S 0 D Flag S 1N * /Free dsply 'Enter your number1 please : ' '' Number1; dsply 'Enter your number2 please : ' '' Number2; If (Number1 < Number2); Flag = 1; dsply ('The value is true => ' + %Char(Flag)); Else; Flag = 0; dsply ('The value is false => ' + %Char(Flag)); ENDIF; *inlr = *on; /End-free
I thank you for your help.
Comment