I meant bitwise AND (&) and not logical and of course.

Here is how you would do it:
Code:
$ADS_UF_PASSWORD_CANT_CHANGE=&40
$NOT_ADS_UF_PASSWORD_CANT_CHANGE= ~$ADS_UF_PASSWORD_CANT_CHANGE

$UserFlags = $UserFlags & $NOT_ADS_UF_PASSWORD_CANT_CHANGE



That first sentence reminds me of an old English joke:

How can you use the word "and" five time consecutively in a sentence and still make sense?


Answer in white below (highlight it if you can't see it):

A fish and chip shop owner is having a new sign made. He comes out of the shop and says to the sign-writer:

"The sign is no good. You have not left enough space between FISH and AND and AND and CHIPS."