PDA

View Full Version : string ?



Skywatcher_NT
10-26-2010, 08:47 AM
How can I compare a declared string value with a getselected name in the scene ?

exmpl.

A=Null1 ( or is it A="Null1" )

In the scene I have a null named Null1

I want to execute some code when the name in A = the same as my null in the scene. Can't find it in the docs...

Just beginning to script a bit, so sorry for the dumb question maybe...

faulknermano
10-26-2010, 06:20 PM
itemName = Scene().firstSelect();
if(itemName == "Null1")
info("item name is Null1");
else
warn("item name is not Null1");

Skywatcher_NT
10-26-2010, 11:30 PM
Thanks, I'll try that :thumbsup: