How do I check if text property is empty or not empty?

Get help using Construct 2

Post » Tue Nov 17, 2015 8:23 pm

I am trying to code navigation between layouts with text fields named "prevLayout" and "nextLayout", located on each layout, outside the play area.

How do I check if text of these objects is set to some value, not empty string, in order to trigger navigation?
B
5
Posts: 11
Reputation: 247

Post » Tue Nov 17, 2015 8:29 pm

You mean text compare text is not "" ?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Nov 17, 2015 8:31 pm

Yes, but how to (1) access the property of a given object?

and (2) hot to check if this type of object is present on the layout?
B
5
Posts: 11
Reputation: 247

Post » Tue Nov 17, 2015 8:37 pm

I'm not sure I understand?

What do you mean by property?

You can compare the text, you can compare variables, you can compare UID, you can compare width, actually you can compare almost anything..

If there isn't any object on the layout which fit's those conditions actions will not be executed..
you could also use pickedcount to see how many objects fit your conditions..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: AndreasR, tarek2 and 11 guests