Check out example codes for "matlab if not true". It will help you in understanding the concepts better.

Code Example 1

~A  % or you can use:  not(A)  % in more complex statements, such as if's:  if ~(condition) % logic end

Learn ReactJs, React Native from akashmittal.com