In this video I have explained, how to implement if else in MATLAB script. It also explains how to display output and accept input from command window.