RegexMatch value compare with other value

Get help using Construct 2

Post » Sat May 16, 2015 10:55 am

I try to compare the value ( which i get from RegexMatchAt expression and set as text to a text object ) with another value.
if the the values are equal it trigger another object to Visible .

but it dont work.

Here is my event sheet system:

At first i add File Reader to read a text file (Set text Text bOx)
then i use the RegexMatchAt expression to get data from the Text Box and set the data to Text1.( Working Fine)
I add Dictionary key "test" with value "myname"(working)

after that i compare the Text1 data with with the dictionary key value as trigger to visible the textbox
but do not work.

can anyone help me to solve it?
B
6
S
1
Posts: 62
Reputation: 524

Post » Sun May 17, 2015 6:09 am

please someone help me please :(
B
6
S
1
Posts: 62
Reputation: 524

Post » Sun May 17, 2015 6:17 am

Output both things you are trying to compare on a text object, are both results as expected?

Are you comparing numbers? Might need to cast to string if one is a string and one is an int.
B
32
S
7
G
2
Posts: 317
Reputation: 2,851

Post » Sun May 17, 2015 7:29 am

Image

see the screenshot. both value are same. but when i compare A=B as trigger to Visible Textbox. its not work.
a snapshot from my event:
Image

@IndieKiwi
B
6
S
1
Posts: 62
Reputation: 524

Post » Sun May 17, 2015 11:04 am

is it possible? if possible please help me...
B
6
S
1
Posts: 62
Reputation: 524

Post » Sun May 17, 2015 2:31 pm

Seems like you are comparing UserId.text with MyID.text..
When this is right on the moment the text changes of your object under event 15 - Advanced text will be set to visible..
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 » Sun May 17, 2015 2:41 pm

yes bro. i want to do it. but it not work though Useris.text & Myid.text has same value :(
@LittleStain
B
6
S
1
Posts: 62
Reputation: 524

Post » Sun May 17, 2015 2:57 pm

Seems like it could be these things:

If Useris.text & Myid.text are the same and the object doesn't become visible:
Either the text of the first object doesn't change
Or the object you are trying to set visible is already visible..

One other option is that a different event is setting the object invisible again in the same tick.
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: No registered users and 16 guests