Assistance with ActionScript 3.0 statement -


i'd write statement tests see if user has key , has more 20 experience points. if user has both key , points test see if user's name "joe", "harry", or "susan".

actionscript 3.0 please!

thanks!

your question not clear have not provided sample code, , type user object is. assuming instance of 'object' class, here's sample code like:

private var user:object;  if (user.key == 'valueforkey' && user.experiencepoints >=20) {     if (user.name == 'joe' || user.name == 'harry' || user.name == 'susan')     {          // code here     } } 

this assuming user object has these properties of key, name , experiencepoints.

hope helps.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -