If Statement in what syntax, maybe VB?
Code:
if P=Q then
'code something
end if
If that'S what you want.