User Tools

Site Tools


harlowe:boolean

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
harlowe:boolean [2017/06/19 02:17]
l
harlowe:boolean [2017/10/09 20:39] (current)
Line 11: Line 11:
 There are several other logical operators available. There are several other logical operators available.
 ^Operator ​       ^ Purpose ^ Example ^ ^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.txt · Last modified: 2017/10/09 20:39 (external edit)