Some typos in the online reference manual

new topic     » topic index » view thread      » older message » newer message

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)

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu