repl.txt (1098B)
1 2 {{alias}}( value, a, b[, left, right] ) 3 Tests if a value is between two values. 4 5 Parameters 6 ---------- 7 value: any 8 Input value. 9 10 a: any 11 Left comparison value. 12 13 b: any 14 Right comparison value. 15 16 left: string (optional) 17 Indicates whether the left comparison value is inclusive. Must be either 18 'closed' or 'open'. Default: 'closed' (i.e., inclusive). 19 20 right: string (optional) 21 Indicates whether the right comparison value is inclusive. Must be 22 either 'closed' or 'open'. Default: 'closed' (i.e., inclusive). 23 24 Returns 25 ------- 26 bool: boolean 27 Boolean indicating whether a value is between two values. 28 29 Examples 30 -------- 31 > var bool = {{alias}}( 3.14, 3.0, 4.0 ) 32 true 33 > bool = {{alias}}( 3.0, 3.0, 4.0 ) 34 true 35 > bool = {{alias}}( 4.0, 3.0, 4.0 ) 36 true 37 > bool = {{alias}}( 3.0, 3.14, 4.0 ) 38 false 39 > bool = {{alias}}( 3.14, 3.14, 4.0, 'open', 'closed' ) 40 false 41 > bool = {{alias}}( 3.14, 3.0, 3.14, 'closed', 'open' ) 42 false 43 44 See Also 45 -------- 46