Agents=24,36,34 (these is evaluated using if statements)
Campaigns=0
Team=1
Could you Guide me on how to use IF conditional statements or other conditions like Switch,Choose ?
eg.
if(Agents!="")
{
select * from table where agentID='23'
}
else if(Campaigns!="" || Team!=1)
{
select * from table where CampaignsID='23'
}

How do I go about doing so? or any other solution.
Thank You,