no it cant, because then the /join alias will be useless, the whole point of setting the variable '%joined' to '$true' is so that if someone /fjoins him it will /part.
"
(!%joined) || (%joined != $true)" means "
(%joined is $null, $false or 0) OR (%joined isn't $true)".
If
%joined isn't
$true, then it will satisfy the first condition. Since your whole code doesn't tell
%joined to be something other than
$true or
$null anywhere, this condition will be evaluated to "
(!$null)", which is always satisfied.
Otherwise, if
%joined is
$true, it will be evaluated to "
(!$true)", thus won't be satisfied.
So, that means the first condition itself checks everything. No need for the second one, it's redundant in this case. That's what I meant.