what does a "?" and "1ex" do in script editor?x = any letter

Non-platform specific questions.

what does a "?" and "1ex" do in script editor?x = any letter

Postby DarkParadox » Fri Feb 01, 2008 9:16 pm

for example when i type a ? i turns blue like this : ? that also happens when i type 1ev: 1ev.
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Re: what does a "?" and "1ex" do in script editor?x = any letter

Postby makslane » Sat Feb 02, 2008 6:40 pm

Are just syntax highlighting.
The operator ? is used to make ternary condition, like this:

Code: Select all
x = y > 10? 20: 30;


if equal to:

Code: Select all
if(y > 10) x = 20;
else x = 30;


About the 1ex, I think is a bug in the syntax highlight
.
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: what does a "?" and "1ex" do in script editor?x = any letter

Postby DarkParadox » Thu Feb 07, 2008 10:36 pm

thanks makslane:
(^_^)
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest