x


help in the unity: boolean script

hello everybody! i want to use a boolean string and i want my string compare beetwen when its right and when its false in a text field so how i use in this script to make the verb:

var username = "Agent006";
if(username == "Agent007")    
print("Welcome special agent 007"); 
else  print("Access Denied!"); 
more ▼

asked Jun 09 '10 at 04:36 PM

nini gravatar image

nini
37 10 13 14

Please don't double post

Jun 09 '10 at 10:27 PM spinaljack

@spinaljack What double-post? -- @nini128 Your question is extremely unclear, and we don't know what you want us to tell you.

Jun 09 '10 at 10:39 PM qJake

I answered this question already, that's where the code he posted game from

Jun 09 '10 at 11:52 PM spinaljack

Oh, I see now, yeah, this is a duplicate.

Jun 10 '10 at 12:03 AM qJake
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x168

asked: Jun 09 '10 at 04:36 PM

Seen: 2763 times

Last Updated: Oct 27 '10 at 07:14 PM