This list is a work in progress. If you have any to add, please leave a comment with your suggestion.
Reserved Words with no Use
I found it confusing that some words common in other languages would show up as bold within Neoxam but would not perform any function.
break
continue
Reserved Words
for (i=0: i<5; i+1) - Similar to other languages. However, break and continue to not work. If you
want to exit on specific conditions, then you must use if blocks to set and check flags.
foreach item in array - This will loop through each item of an array.
if (1=1) - Executes the if block if the comparison is true.
else - Follows and if block and executes if the preceding if statement is not true.
while (i<5) - Executes until the given condition is no longer true.
try - Denotes a block of code to execute. If an error occurs, the following "onerror" block will be
executed. I would recommend encapsulating your rule (function) in a try so that you can
provide a detailed error message via the onerror block.
onerror - Similar to the catch block in Java. The code in this block will execute if there is an error
in the preceding try block.
return - Exits the rule (function) with the optional given value. Returning zero at the end of a
successfully executed function is not required, but can be useful in conjunction with
some automation tools.
No comments:
Post a Comment