• Advertisement

Archived

This topic is now archived and is closed to further replies.

Flag Comparing (Easy Question)

This topic is 5957 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

If i want to test if there is a certian flag say... DDBLT_WAIT in a combinations off flags say... LotsOfFlags do I do: if (DDBLT_WAIT & LotsOfFlags) { . . . . } ?????

Share this post


Link to post
Share on other sites
Advertisement
yeah, i think so
if you did
DDBLT_WAIT | LotsOfFlags
somewhere else before, then the if-statement should be execute

Share this post


Link to post
Share on other sites
It''s more common to put the constant on the right, i.e LotsOfFlags & DDBLT_WAIT, but if you like the other way, it works, so use it!

Share this post


Link to post
Share on other sites

  • Advertisement