We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0675b56 commit e506f01Copy full SHA for e506f01
components/expression_language/syntax.rst
@@ -244,6 +244,26 @@ Numeric Operators
244
245
* ``..`` (range)
246
247
+For example::
248
+
249
+ class User
250
+ {
251
+ public $age;
252
+ }
253
254
+ $user = new User();
255
+ $user->age = 34;
256
257
+ $language->evaluate(
258
+ 'user.age in 18..45',
259
+ array(
260
+ 'user' => $user,
261
+ )
262
+ );
263
264
+This will evaluate to ``true``, because ``user.age`` is in the range from
265
+``18`` till ``45``
266
267
Ternary Operators
268
~~~~~~~~~~~~~~~~~
269
0 commit comments