number: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
== Notes == | == Notes == | ||
This is not a [[range]]. Values like "<code>= 11</code>" would just evaluate to '''0'''. | This is not a [[References#Range_Operators|range]]. Values like "<code>= 11</code>" would just evaluate to '''0'''. | ||
== API == | == API == |
Revision as of 21:52, 23 January 2017
Overview
Number. May be a fractional value (with dot .
separator) or just an integer.
Empty string (unset option) or strings starting with non-numeric characters are evaluated as in Perl, usually to 0.
Notes
This is not a range. Values like "= 11
" would just evaluate to 0.
API
There is no API per se, just use usual Perl's relational and equality operators.
Examples
if ($config{answerToLifeUniverseAndEverything} == 42) { ...