x


Can anyone tell me how do I add a boolean string to compare true or false?

my question in the title.

more ▼

asked Jun 09 '10 at 02:22 PM

nini gravatar image

nini
37 10 13 14

Your question doesn't make any sense, are you trying to compare 2 strings?

Jun 09 '10 at 02:25 PM spinaljack

no i need a boolean string script for compare in my text field when i writing right or false.

Jun 10 '10 at 04:27 AM nini

bitflags? bit math?

Dec 24 '10 at 09:50 AM ina
(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first
var username = "Agent006";

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

answered Jun 09 '10 at 02:24 PM

spinaljack gravatar image

spinaljack
9.1k 18 31 92

This is an example java script

Jun 09 '10 at 10:07 PM spinaljack
(comments are locked)
10|3000 characters needed characters left

where do i put it in a java script or another?

more ▼

answered Jun 09 '10 at 04:04 PM

nini gravatar image

nini
37 10 13 14

If you're not sure how to use a script, maybe you should start with some Tutorials, like at: http://answers.unity3d.com/questions/4897/how-can-i-start-learning-unity-fast

Jun 09 '10 at 04:13 PM Cyclops

Also, please use comments if you have further questions regarding a response :)

Jun 09 '10 at 04:15 PM Novodantis 1
(comments are locked)
10|3000 characters needed characters left

Boolean and String are two completely different data types. You cannot have a boolean string!

more ▼

answered Dec 24 '10 at 09:00 AM

YoshieMaster gravatar image

YoshieMaster
200 11 11 15

(comments are locked)
10|3000 characters needed characters left
Your answer
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:

x430
x249

asked: Jun 09 '10 at 02:22 PM

Seen: 871 times

Last Updated: Jun 09 '10 at 04:14 PM