Hi @swayto
You can use the mlogic option to display if the condition was evaluated as true or false:
options mlogic;
In the macro, you have nested conditions :
n = 4 so the first condition is true -> 4 + (as 3 is greater than 1, we apply the "if" condition so: 3 + (as 2 is greater than 1, we apply the "if" condition so: 2 + (as 1 is not greater than 1, we apply the 'else' condition so 1)
-> so 4 + 3 + 2+ 1
Hope it's clear.
Best,