From what I can tell, you already have another post asking the same question. -
Forum What you're looking for is used in pretty much every script around here, you're just not seeing it. I mean, you even have it in your own script.
Set variables, set if statements.
Read the help files.