Number_1 and also number_2 need to be numeric values. (To to compare string values, use STRCOMP.)
Return value
This command returns the numeric value of number_1 - number_2.
Notes
The better Than prize is typically used with an IF command, as shown in the examples below.
To carry out a comparison the is indistinguishable to "NOT greater THAN" or "LESS than OR equal TO", use the better Than prize in an IF command. The command for the action to take it if number_1 is not greater than number_2 – or if number_1 is much less than or same to number_2 – must be inserted in the False part parameter that the IF command (after the second comma).
To do a comparison that is identical to "GREATER 보다 OR equal TO", usage the .
Note: To carry out a to compare that constantly returns a 1 ("True") if number_1 > number_2 and constantly returns a 0 ("False") if number_1 number_2 , you need to either carry out a nested IF statement or multiple IF statements with numeric variables such together NVar or MyNVar. This is important when using Bitand (&) or Bitor (|). Watch the instances below.
Examples
IF ( > 0), (MESSAGE "The number is higher than zero."), GOTO
If cell is higher than 0, display screen the message. Otherwise, go to cabinet .
IF ( > 0), "", (MESSAGE "The number is not higher than zero.")
This example performs a "NOT better THAN" or "LESS 보다 OR equal TO" comparison.
If cell is not greater than 0, the article is displayed. Equivalently, if cabinet is much less than or equal to 0, the message is displayed.
IF MyNVar "Comparison1" & MyNVar "Comparison2", "Department A", "Department B"
If cell is better than 5 And cabinet is less than 10, return the string worth "Department A". Otherwise, return the string value "Department B". This offers the Bitand operator.
IF (IF > 5, 1, 0) & (IF
If cell is better than 5 And cabinet is much less than 10, return the string value "Department A". Otherwise, return the string worth "Department B". This uses the Bitand operator.
IF MyNVar "Comparison1" | MyNVar "Comparison2", "Department A", "Department B"
If cabinet is higher than 5 Or cabinet is less than 10, return the string value "Department A". Otherwise, return the string worth "Department B". This offers the Bitor operator.
If cell is better than 5 Or cell is less than 10, return the string value "Department A". Otherwise, return the string value "Department B". This provides the Bitor operator.