0 - 1 of 1 tags for conditional statement

I have a big list of stored procedures created in SQL server. I have to convert them to tereadata macros and need help in knowing logic for If and Else in a macro. Please help me with the macro structure. Thanks in advance.