I have a variable called, for example, "lstate". It can be a combination of ODS_DEFAULT, ODS_SELECTED, ODS_FOCUS, etc.
Now, I want to if it has ODS_SELECTED it in.
Here is how I am doing:
PHP Code:
if(lstate && ODS_SELECTED)
{
//ODS_SELECTED is in there

Is the above checking right?