Thursday, 13 December 2018

Logical operators in SCILAB

Logical operators :

Logical operators are used to check conditions before the operation is being performed. 

*For example, you want to display word "Hello", when variable 'a' is less than 5 and variable 'b' is greater than 3,
                        
                        so you can simply write

                        if a>5 & b>3 then
                           disp("Hello")
                        end  

likewise all other operators can be used according to the need, that we will see in next tutorials.

Some commonly used logical operators are shown below :

For detailed explanation, you can watch below video :

No comments:

Post a Comment