|
|
Line 1: |
Line 1: |
| == Overview ==
| | #REDIRECT [[References#Range_Operators]] |
| | |
| User-specified [[wikipedia:Interval (mathematics)|interval]] for an option.
| |
| | |
| == Value Format ==
| |
| | |
| {|class="TablePager"
| |
| |-
| |
| !Value
| |
| !Description
| |
| |-
| |
| ! X
| |
| | {X}
| |
| |-
| |
| ! X..Y
| |
| |rowspan="2"| [X, Y]
| |
| |-
| |
| ! X-Y
| |
| |-
| |
| ! > X
| |
| | (X, +∞)
| |
| |-
| |
| ! >= X
| |
| | [X, +∞)
| |
| |-
| |
| ! < X
| |
| | (-∞, X)
| |
| |-
| |
| ! <= X
| |
| | (-∞, X]
| |
| |}
| |
|
| |
| == Examples ==
| |
| | |
| Level is greater than 10:
| |
| [[lvl]] > 10
| |
| | |
| Zeny amount is equal to 5000:
| |
| [[zeny]] 5000
| |
| | |
| Job level is between 10 and 15:
| |
| jlvl 10..15
| |
| | |
| == API ==
| |
| | |
| Features and plugins MUST use [http://openkore.svn.sourceforge.net/viewvc/openkore/openkore/trunk/src/Utils.pm?view=markup Utils::inRange(<current value>, <option contents>)] to check any kind of options with range values.
| |
| | |
| === Examples ===
| |
| | |
| inRange($char->{hp}, $config{someHpRangeOption})
| |
| | |
| [[Category:Reference]]
| |
| __NOTOC__
| |