Author Topic: Do CAPS count?  (Read 582 times)

Quick question... Does it change anything if I put

Code: [Select]
function servercmdhelloworld(%c)
{
if(%c.isAdmin)
{
messageall(' ',"HELLO WORLD!");
}
else
{
messageall(' ',"Hello World!");
}

instead of

Code: [Select]
function ServerCmdHelloWorld(%c)
{
if(%c.isAdmin)
{
MessageAll(' ',"HELLO WORLD!");
}
else
{
MessageAll(' ',"Hello World!");
}

In the first one, there wasn't any capital letters and in the second there was. (messageall on first one and MessageAll on second.) does that change anything?

nope

one just looks neater

Function names and script-based variable names are all case insensitive.

Function names and script-based variable names are all case insensitive.
I'm unsure about this but is 'package' case sensitive? It seems whenever I capitalize it I get a syntax error.

I'm unsure about this but is 'package' case sensitive? It seems whenever I capitalize it I get a syntax error.

That's a construct (e.g. function, package, dataBlock), not a function name or variable name. Those tend to be case-sensitive along with engine-based member variables such as "dataBlock" on objects.