Logic

a

  • effect: Used to capture changes in variables to respond When the condition is met, that is, when the parameter value is true, the content of the block will be executed


a

  • effect: Compare the left and right parameters, return a Boolean value, return true if the condition is met, otherwise return false

  • parameter: The value type on the left and right sides must be the same, for example, both are numbers or both are characters


a

  • effect: It will return a Boolean value, and the parameters on both sides must also be Boolean values. If both sides are true, return true. If either party is false or both parties are false, return false.

a

  • effect: Returns a boolean value, the parameters on both sides must also be boolean values, as long as either of them is true, it will return true, and only when both are fasle will it return false
    a
    computational results:

        true
        false
    

a

  • effect: Splicing before the block whose return value is Boolean will get the opposite Boolean value
    a
    computational results:

        false
    

a

  • effect: That is, the boolean value true.

a

  • effect: That is, the boolean value false.


a

  • effect: Generally used to compare or assign values to variables


a

a

  • effect: In fact, it has the same function as the true block and the false block. They are all boolean values, but this block is more suitable for switch state assignment.


a

  • effect: This is a ternary expression, if the return value of test is true then the block after if true will be executed, and vice versa

  • example:
    a
    computational results:

        equality