Page 1 of 1

what is the ! for

Posted: Sat Mar 20, 2004 7:46 am
by andylyon87

Code: Select all

if (!copy
Just a quick one, what is the ! for in the above code

Posted: Sat Mar 20, 2004 7:49 am
by markl999
copy returns FALSE on failure, and the ! means 'not' , so it really all means "if the copy failed"

;)

Posted: Sat Mar 20, 2004 7:50 am
by andylyon87
cheers, you're very helpful

Posted: Sat Mar 20, 2004 7:59 am
by patrikG