This block will be used as an input to be displayed if the condition is true.
#How to use matlab simulink code
These statements are used to implement a certain portion of code if a specific condition is true and implement the other portion if that certain condition comes out to be false. If-ELSE statements or IF-THEN-ELSE statement. If you have an experience to work with other programming languages, you must have encountered with conditional statements i.e. Based on if the condition given and the input variable matches, the if statements under the if block will be executed and if the condition does not match the else block will be executed. If else statements are used to allows different executions depending on the value of the conditional logic.