Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| soc:2009:lynusvaz:notes:scripting_doc:features_added [2009/08/16 00:16] lynusvaz | soc:2009:lynusvaz:notes:scripting_doc:features_added [2009/08/16 00:19] (current) lynusvaz | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| Arithmetic expressions can be evaluated by placing them within $(). | Arithmetic expressions can be evaluated by placing them within $(). | ||
| The following operators are supported (in order of decreasing precedence): | The following operators are supported (in order of decreasing precedence): | ||
| - | - ''!, ~''  (logical NOT and bitwise negation) | + | - !, ~ (logical NOT and bitwise negation) | 
| - | - ''*, /, %''  (multiplication, division, and modulo) | + | - *, /, % (multiplication, division, and modulo) | 
| - | - ''+, -''  (addition, subtraction) | + | - +, - (addition, subtraction) | 
| - | - ''<<, >>''  (left- and right-shift) | + | - <<, >>  (left- and right-shift) | 
| - | - ''<, <=, >, >=''  (inequality) | + | - <, <=, >, >= (inequality) | 
| - | - ''!=, ==''  (equal, not equal) | + | - !=, == (equal, not equal) | 
| - | - ''&''  (bitwise AND) | + | - & (bitwise AND) | 
| - | - ''|''  (bitwise OR) | + | - | (bitwise OR) | 
| - | - ''^''  (bitwise EX-OR) | + | - ^ (bitwise EX-OR) | 
| - | - ''&&''  (logical AND) | + | - &&  (logical AND) | 
| - | - ''||''  (logical OR) | + | - || (logical OR) | 
| The == and != operators also act on strings. Identifiers are expanded by placing them within ${}. | The == and != operators also act on strings. Identifiers are expanded by placing them within ${}. | ||
| E.g.: | E.g.: | ||



