Sobes.tech
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:

    • == or eq (equal)
    • != or ne (not equal)
    • < or lt (less than)
    • > or gt (greater than)
    • <= or le (less than or equal to)
    • >= or ge (greater than or equal to)
  • Logical operators:

    • && or and (logical AND)
    • || or or (logical OR)
    • ! or not (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)
What types of operators do you know in Expression… - sobes.tech