User Tools

Site Tools


harlowe:boolean

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
harlowe:boolean [2017/06/19 02:16]
l created
harlowe:boolean [2017/10/09 20:39] (current)
Line 10: Line 10:
  
 There are several other logical operators available. There are several other logical operators available.
-^Operator ​       ^ +^Operator ​       ​^ Purpose ^ Example ​
-| ''​%%is%%''​ | Evaluates to ''​%%true%%''​ if both sides are equal, otherwise ''​%%false%%''​. | ''​%%$bullets is 5%%''​ +| ''​%%is%%''​ | Evaluates to ''​%%true%%''​ if both sides are equal, otherwise ''​%%false%%''​. | ''​%%$bullets is 5%%'' ​| 
-| ''​%%is not%%''​ | Evaluates to ''​%%true%%''​ if both sides are not equal. | ''​%%$friends is not $enemies%%''​ +| ''​%%is not%%''​ | Evaluates to ''​%%true%%''​ if both sides are not equal. | ''​%%$friends is not $enemies%%'' ​| 
-| ''​%%contains%%''​ | Evaluates to ''​%%true%%''​ if the left side contains the right side. | ''​%%"​Fear"​ contains "​ear"​%%''​ +| ''​%%contains%%''​ | Evaluates to ''​%%true%%''​ if the left side contains the right side. | ''​%%"​Fear"​ contains "​ear"​%%'' ​| 
-| ''​%%is in%%''​ | Evaluates to ''​%%true%%''​ if the right side contains the left side. | ''​%%"​ugh"​ is in "​Through"​%%''​ +| ''​%%is in%%''​ | Evaluates to ''​%%true%%''​ if the right side contains the left side. | ''​%%"​ugh"​ is in "​Through"​%%'' ​| 
-| ''​%%>​%%''​ | Evaluates to ''​%%true%%''​ if the left side is greater than the right side. | ''​%%$money > 3.75%%''​ +| ''​%%>​%%''​ | Evaluates to ''​%%true%%''​ if the left side is greater than the right side. | ''​%%$money > 3.75%%'' ​| 
-| ''​%%>​=%%''​ | Evaluates to ''​%%true%%''​ if the left side is greater than or equal to the right side. | ''​%%$apples >= $carrots + 5%%''​ +| ''​%%>​=%%''​ | Evaluates to ''​%%true%%''​ if the left side is greater than or equal to the right side. | ''​%%$apples >= $carrots + 5%%'' ​| 
-| ''​%%<​%%''​ | Evaluates to ''​%%true%%''​ if the left side is less than the right side. | ''​%%$shoes < $people * 2%%''​ +| ''​%%<​%%''​ | Evaluates to ''​%%true%%''​ if the left side is less than the right side. | ''​%%$shoes < $people * 2%%'' ​| 
-| ''​%%<​=%%''​ | Evaluates to ''​%%true%%''​ if the left side is less than or equal to the right side. | ''​%%65 <= $age%%''​ +| ''​%%<​=%%''​ | Evaluates to ''​%%true%%''​ if the left side is less than or equal to the right side. | ''​%%65 <= $age%%'' ​| 
-| ''​%%and%%''​ | Evaluates to ''​%%true%%''​ if both sides evaluates to ''​%%true%%''​. | ''​%%$hasFriends and $hasFamily%%''​ +| ''​%%and%%''​ | Evaluates to ''​%%true%%''​ if both sides evaluates to ''​%%true%%''​. | ''​%%$hasFriends and $hasFamily%%'' ​| 
-| ''​%%or%%''​ | Evaluates to ''​%%true%%''​ if either side is ''​%%true%%''​. | ''​%%$fruit or $vegetable%%''​ +| ''​%%or%%''​ | Evaluates to ''​%%true%%''​ if either side is ''​%%true%%''​. | ''​%%$fruit or $vegetable%%'' ​| 
-| ''​%%not%%''​ | Flips a ''​%%true%%''​ value to a ''​%%false%%''​ value, and vice versa. | ''​%%not $stabbed%%''​+| ''​%%not%%''​ | Flips a ''​%%true%%''​ value to a ''​%%false%%''​ value, and vice versa. | ''​%%not $stabbed%%'' ​|
  
  
 Conditions can quickly become complicated. The best way to keep things straight is to use parentheses to Conditions can quickly become complicated. The best way to keep things straight is to use parentheses to
 group things. group things.
harlowe/boolean.1497852998.txt.gz · Last modified: 2017/10/09 20:37 (external edit)