harlowe:number

# Differences

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

 harlowe:number [2017/06/19 03:03]l created harlowe:number [2019/04/16 04:12] (current)l 2019/04/16 04:12 l 2019/04/16 04:11 l 2017/10/09 20:39 external edit2017/06/19 03:03 l created Next revision Previous revision 2019/04/16 04:12 l 2019/04/16 04:11 l 2017/10/09 20:39 external edit2017/06/19 03:03 l created Line 20: Line 20: | ''>​=''​ | Evaluates to boolean ''​true''​ if the left side is greater than or equal to the right side, otherwise ''​false''​. | ''​\$apples >= \$carrots + 5''​| | ''>​=''​ | Evaluates to boolean ''​true''​ if the left side is greater than or equal to the right side, otherwise ''​false''​. | ''​\$apples >= \$carrots + 5''​| | ''<''​ | Evaluates to boolean ''​true''​ if the left side is less than the right side, otherwise ''​false''​. | ''​\$shoes < \$people * 2''​| | ''<''​ | Evaluates to boolean ''​true''​ if the left side is less than the right side, otherwise ''​false''​. | ''​\$shoes < \$people * 2''​| - | ''<​=''​ | Evaluates to boolean ''​true''​ if the left side is less than or equal to the right side, otherwise ''​false''​. | ''​65 <= \$age''​| + | ''​%%<=%%''​ | Evaluates to boolean ''​true''​ if the left side is less than or equal to the right side, otherwise ''​false''​. | ''​%%65 <= \$age%%''​| + | ''​is''​ | Evaluates to boolean ''​true''​ if both sides are equal, otherwise ''​false''​. | ''​\$agendaPoints is 2''​| + | ''​is not''​ | Evaluates to boolean ''​true''​ if both sides are not equal, otherwise ''​false''​. | ''​\$agendaPoints is not 0''​| + | ''​matches''​ | Evaluates to boolean ''​true''​ if one side is a number and the other is an identical number or ''​num''​ or ''​number''​ | ''​\$bytes matches \$dataUsage''​| + | ''​is a'',​ ''​is an''​ | Evaluates to boolean ''​true''​ if the right side is ''​num''​ or ''​number''​ and the left side is a number. | ''​\$credits is a num''​| You can only perform these operations (apart from ''​%%is%%''​) on two pieces of data if they'​re both numbers. Adding the You can only perform these operations (apart from ''​%%is%%''​) on two pieces of data if they'​re both numbers. Adding the [[harlowe:​string|string]] "​5"​ to the number 2 would produce an error, and not the number 7 nor the string "​52"​. You must [[harlowe:​string|string]] "​5"​ to the number 2 would produce an error, and not the number 7 nor the string "​52"​. You must convert one side or the other using the [[harlowe:​num|(num:​)]] or [[harlowe:​text|(text:​)]] macros. convert one side or the other using the [[harlowe:​num|(num:​)]] or [[harlowe:​text|(text:​)]] macros.