UNPKG
@jss-rule-engine/core
Version:
latest (0.3.28)
0.3.28
0.3.27
0.3.16
0.3.15
0.3.12
0.3.1
0.2.7
0.2.6
Rule engine for Sitecore JSS
@jss-rule-engine/core
/
src
/
operators
/
isNotEqualTo.ts
6 lines
(5 loc)
•
294 B
text/typescript
View Raw
1
2
3
4
5
6
import
{
RuleEngineContext
,
RuleOperatorContext
}
from
"../types/ruleEngine"
;
//works both for numbers and strings
export
default
async
function
(
operatorContext:RuleOperatorContext, _ruleContext?: RuleEngineContext
) {
return
operatorContext.
parameter1
!= operatorContext.
parameter2
; }