While learning sas tutorial from PSU. @https://online.stat.psu.edu/stat480/lesson/welcome-stat-480
.
I Came across these sentences:
Note that, in general, using ELSE statements with IF-THEN statements can save resources:
Using IF-THEN statements without the ELSE statement causes SAS to evaluate all IF-THEN statements. Using IF-THEN statements with the ELSE statement causes SAS to execute IF-THEN statements until it encounters the first true statement. Subsequent IF-THEN statements are not evaluated.
can someone explain me the above lesson with an example. Thanks.