Simple boolean question

navisionerinnavisionerin Member Posts: 161
hi, i have the follwoing question.. what does this do
boolean1 := not rec.boolean2

Best Answer

  • AluanAluan Member Posts: 160
    edited 2022-04-01 Answer ✓
    Hello navisionerin,
    the NOT Operator is a logical negation. See here:
    https://docs.microsoft.com/en-us/dynamics-nav/c-al-operators

    In that case u would get the opposite. So the Boolean value FALSE becomes TRUE, and TRUE becomes FALSE.

    Example:
    rec.boolean 2 := TRUE
    boolean1 := NOT rec.boolean2

    boolean1 -> FALSE

Answers

Sign In or Register to comment.