Thursday 13 December 2018

Conditional operators in SCILAB

Conditional operators :

Conditional operators are used to break the loop of solution. 

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

                        if a>5 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 conditional operators are shown below :

For detailed explanation, you can watch below video :

No comments:

Post a Comment