diff --git a/core/components/if/snippet.if.php b/core/components/if/snippet.if.php index ce39414..9ea941b 100644 --- a/core/components/if/snippet.if.php +++ b/core/components/if/snippet.if.php @@ -90,6 +90,10 @@ $operand = explode(',',$operand); $output = in_array($subject,$operand) ? $then : (isset($else) ? $else : ''); break; + case 'between': + $operand = explode(',',$operand); + $output = count($operand > 1) && intval($subject) >= intval($operand[0]) && intval($subject) <= intval($operand[1]) ? $then : (isset($else) ? $else : ''); + break; case '==': case '=': case 'eq':