Difference between pages "TRIGEDIT-MENU TRIG-MENU TRIG-EDIT TRIGEDIT-EDITOR SCRIPT-EDITOR SCRIPT-MENU" and "EXPRESSIONS TRIGEDIT-EXPRESSIONS INCREMENTS MATHEMATICAL /="

From 4Dimensions
(Difference between pages)
Jump to: navigation, search
(Bot: Automated import of articles)
 
m
 
Line 1: Line 1:
'''TRIGEDIT-MENU TRIG-MENU TRIG-EDIT TRIGEDIT-EDITOR SCRIPT-EDITOR SCRIPT-MENU '''
+
'''EXPRESSIONS TRIGEDIT-EXPRESSIONS INCREMENTS MATHEMATICAL /= || \'''
 
[[Category:Help Files]]
 
[[Category:Help Files]]
 +
[[Category:Building]]
  
TRIGEDIT-MENU TRIG-MENU TRIG-EDIT TRIGEDIT-EDITOR SCRIPT-EDITOR SCRIPT-MENU
+
A false expression is any expression that evaluates to 0, or an empty string.
  
TRIGEDIT-MENU TRIG-MENU TRIG-EDIT TRIGEDIT-EDITOR SCRIPT-EDITOR SCRIPT-MENU
+
A true expression is any expression that evaluates to anything other than a
  
TRIGEDIT-MENU TRIG-MENU TRIG-EDIT TRIGEDIT-EDITOR SCRIPT-EDITOR SCRIPT-MENU
+
false expression. The following list are the recognized operators. The higher
  
 +
the operator is on the list, the higher the precedence. The expression is
  
 +
evaluated from left to right. Parenthesis can be used to group.
  
Trigger Editor [1300]                      {cRHELP TRIGEDIT-EDITOR{c0
 
  
 +
<pre>
 +
|Operator|        Name          | Examples  0=False 1=True  |
 +
--------------------------------------------------------------
  
 +
|  ||  | logical or            | 0 || ( ) = 0; 5 || 0 = 1  |
  
1) Name        : {cynew trigger{c0              {cRHELP TRIGEDIT-NAME{c0
+
|  &&  | logical and          | 1 && 0 = 0; 5 && 3 = 1    |
  
2) Intended for : {cyMobiles{c0                  {cRHELP TRIGEDIT-INTENDED{c0
+
|  ==  | equivalence          | 5 == 3 = 0; dog == DoG = 1|
  
3) Trigger types: {cyGreet{c0                    {cRHELP TRIGEDIT-TYPES{c0
+
|  !=  | inequality            | 0 != Z = 0; dog != d = 1  |
  
4) Numeric Arg  : {cy100{c0                      {cRHELP TRIGEDIT-NUMERIC{c0
+
|  <    | less than            | 4 < 3 = 0; 4 < 5 = 1      |
  
5) Arguments   :                          {cRHELP TRIGEDIT-ARG{c0
+
|  >   | greater than          | 4 > 3 = 1; 4 > 4 = 0      |
  
6) Commands:                                {cRHELP TRIGEDIT-COMMANDLIST{c0
+
|  <=  | less than or equal    | 4 <= 3 = 0; 4 <= 5 = 1    |
  
{ccsay My trigger commandlist is not complete!{c0
+
|  >=  | greater than or equal | 4 >= 3 = 1; 4 >= 4 = 1    |
  
 +
|  /=  | substring            | "concatenate" /= "cat"    |
  
 +
|  -    | subtraction          | 15 - 10 = 5              |
  
Q) Quit
+
|  +    | addition              | 10 + 15 = 25              |
  
Enter Choice :
+
|  *    | multiplication        | 10 * 20 = 400            |
  
 +
|  /    | division              | 100 / 20 = 5              |
  
 +
|  !    | negation              | !() = 1; !0 = 1; !dog = 0;|
  
See Also: [[TRIGEDIT-TYPES]]  [[TRIGEDIT-COMMANDS]]  [[VARIABLES]]  [[TRIGEDIT-MOB-TUTORIAL]]
+
--------------------------------------------------------------
 +
</pre>
 +
 
 +
 
 +
Example: {cRTSTAT 63{c0

Latest revision as of 12:25, 14 July 2017

EXPRESSIONS TRIGEDIT-EXPRESSIONS INCREMENTS MATHEMATICAL /= || \

A false expression is any expression that evaluates to 0, or an empty string.

A true expression is any expression that evaluates to anything other than a

false expression. The following list are the recognized operators. The higher

the operator is on the list, the higher the precedence. The expression is

evaluated from left to right. Parenthesis can be used to group.


|Operator|         Name          | Examples  0=False 1=True  |
--------------------------------------------------------------

|   ||   | logical or            | 0 || ( ) = 0; 5 || 0 = 1  |

|   &&   | logical and           | 1 && 0 = 0; 5 && 3 = 1    |

|   ==   | equivalence           | 5 == 3 = 0; dog == DoG = 1| 

|   !=   | inequality            | 0 != Z = 0; dog != d = 1  | 

|   <    | less than             | 4 < 3 = 0; 4 < 5 = 1      |

|   >    | greater than          | 4 > 3 = 1; 4 > 4 = 0      |

|   <=   | less than or equal    | 4 <= 3 = 0; 4 <= 5 = 1    |

|   >=   | greater than or equal | 4 >= 3 = 1; 4 >= 4 = 1    |

|   /=   | substring             | "concatenate" /= "cat"    |

|   -    | subtraction           | 15 - 10 = 5               |

|   +    | addition              | 10 + 15 = 25              |

|   *    | multiplication        | 10 * 20 = 400             |

|   /    | division              | 100 / 20 = 5              |

|   !    | negation              | !() = 1; !0 = 1; !dog = 0;| 

--------------------------------------------------------------


Example: {cRTSTAT 63{c0