maciep,

close but no cigar:

Code:
    if ucase($pwd) = $pwd or lcase($pwd) = $pwd
? "invalid"
endif



will evaluate true in any case ...

Haven't tested the numeric part but that should work !
_________________________