conditional statement

conditional statement



Hi..

 
In my stateless form, I am selecting the other form depend on the selection in stateless form but at the same time i want to
check the login-id as well.
 
statelessform
fileds:
category
if category = 1 select form-1
if category = 2 select form-2
 
this works fine.
 
now i want to check the login user id as well.
 
i.e
 
if loginuserid="id1" and category=1 then select form-1
if loginuserid="id1" and category=2 then selct form-2
if both above condiftion is not true then
alert the message the "id does not match"
clear all fields and wait for input again.
 
can you please help,
 
thanks,