Junior
What types of operators do you know in Expression Language (EL)?
sobes.tech AI
Answer from AI
-
Arithmetic operators:
+(addition)-(subtraction)*(multiplication)/(division)%(modulus)
-
Comparison operators:
==oreq(equal)!=orne(not equal)<orlt(less than)>orgt(greater than)<=orle(less than or equal to)>=orge(greater than or equal to)
-
Logical operators:
&&orand(logical AND)||oror(logical OR)!ornot(logical NOT)
-
Conditional (ternary) operator:
? :(test ? value if true : value if false)
-
Property access operator:
.(access to object property)[](access to array or collection element)
-
Assignment operator:
=(assigning a value to a variable in EL 3.0+ context)
-
Empty check operator:
empty(checks if a variable is null or an empty array/collection/string)