Page 1 of 1

default in script editor

PostPosted: Mon Jan 14, 2008 8:12 pm
by DarkParadox
i figured out that if you type default it turns blue like int,
what the heck does it do?

Re: default in script editor

PostPosted: Mon Jan 14, 2008 8:32 pm
by makslane
The word 'default' is a reserved word in the C language used in the switch statement:

More info:
http://cermics.enpc.fr/~ts/C/SYNTAX/switch.html

Re: default in script editor

PostPosted: Mon Jan 14, 2008 8:40 pm
by DarkParadox
thanks makslane