Can I test if an attribute is "blank"?
stefdelec
Member, PRO Posts: 146
Hi,
If attribute 1 is
then...?
How do I trigger a behavior if a value is blank/empty?
Regards,
Stéphane.
Comments
What do you mean by 'blank' or 'empty', do you mean 0 (zero) ?
I usually add a text display...temporarily on my game scene to know wether that Boolean or what ever game level attribute is turning on/off or not.
Complete Guide to iOS Publishing {} Complete Guide to Mac Publishing
Blank empty.
(tks socks to answering all my answer)
What do you mean by "trigger a behavior if a value is blank/empty?"
You are saying if something is true (if the value is empty/blank) then do some action, when GameSalad looks at this attribute to check whether it is blank/empty what would GameSalad be looking for ? Would GameSalad be looking for a 0 (zero) ? Is that what you mean by blank/empty ?
Nop, if attribute is a text, and this attribute has nothing attributed=> then...
Should i leave empty the space after "="
if attribute =
then...
No you can't have a blank attribute.
It must be something. Even 0 is something to a computer.
What behavior are you trying to trigger?
You can always say when attribute is not 1.
Coding logic takes some time understand. More details would help.
Yeah but the attribute should a,b,c...or z.
You can have a blank text attribute. Just leave the space after "=" empty, that should work fine. See the attached demo for an example.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Tks!