assigning value toa variable

Tools & Utilities
Enthusiast

assigning value toa variable

Hi all,
Ina bteq ,I need to pick value from a query assign that to a variable and using same variable in if/else condition.can any bdy suggest how to assign value toa variable and use if condition there.
thanks in advance.
Kapil