File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1484,11 +1484,11 @@ Example with special syntax:
14841484 type == NODE and !$node->isInMaintenanceMode and _haveAlarms
14851485
14861486 When special syntax is used, calculation of variables in ``with `` happens only
1487- if the expression returns true (or while calculation the expression if that
1488- variable is used in the expression). Because of that we can use ``$node `` when
1489- calculating _haveAlarms and _numberOfCriticalAlarms in the above example,
1490- because we will not get into this part of code for objects which are not nodes
1491- (because our expression starts with ``type == NODE ``) .
1487+ if the expression returns true (or while calculating the expression if that
1488+ variable is used in the expression). Because of that we can use ``$node `` in
1489+ _haveAlarms and _numberOfCriticalAlarms calculation in the above example, since
1490+ we will not get into this part of code for objects which are not nodes because
1491+ our expression starts with ``type == NODE `` .
14921492
14931493
14941494Example with global variables:
You can’t perform that action at this time.
0 commit comments