Schema Script is a language for expression evaluation. It can perform all the standard arithmetic operators and can access schema objects (and their methods) as registered local and global variables.
Schema script is executed with a call to SchemaEvalRequest or SchemaScriptRun
Schema Script does not support flow control statements like if, do, while and function calls.
Keywords
Keyword | Description |
---|---|
true | Logical true |
false | Logical false |
and | Logical AND |
or | Logical OR |
not | Logical NOT |
nand | Logical NAND |
or | Logical NOR |
Operators
= | Assignment |
. | Member access |
- | Subtraction |
+ | Addition |
% | Modulo |
/ | Division |
* | Multiplication |
** | Raise to the power |
| | Bitwise OR |
^ | Bitwise XOR |
& | Bitwise AND |
~ | Bitwise NOT |
<< | Logical shift left |
>> | Logical shift right |
+= | Addition assignment |
-= | Subtraction assignment |
*= | Multiplication assignment |
/= | Division assignment |
%= | Module assignment |
**= | Power assignment |
|= | Bitwise OR assignment |
^= | Bitwise XOR assignment |
&= | Bitwise AND assignment |
<<= | Logical shift left assignment |
>>= | Logical shift right assignment |
< | Less than |
> | Greater than |
<= | Less than or equal |
>= | Greater than or equal |
== | Equality check |
!= | Inequality check |
|| | Logical OR |
&& | Logical AND |
! | Logical NOT |
Examples
Check if the requested URL contains a site to block
Set a variable and use it in an expression