Some typos in the online reference manual
In document: http://www.rapideuphoria.com/refman_2.htm (point 2.2.4 Operations
on Sequences)
in the below code ending closure for equal() and compare() function calls should
be ")" not "}"
if equal("APPLE", "ORANGE"} then -- CORRECT
In general, you can do relational comparisons using the compare() built-in
routine:
if compare("APPLE", "ORANGE"} = 0 then -- CORRECT
You can use compare() for other comparisons as well:
if compare("APPLE", "ORANGE"} < 0 then -- CORRECT
-- enter here if "APPLE" is less than "ORANGE" (TRUE)
|
Not Categorized, Please Help
|
|