2-way behavior with Data

Forum to ask for any help
Post Reply
cv27
Posts: 233
Joined: Sat Nov 24, 2012 10:15 pm
Location: Montréal, QC, Canada

2-way behavior with Data

Post by cv27 » Fri Apr 10, 2015 10:41 pm

In a 2-way Data condition, I can receive the following 2 responses:
error
error, not authorized


I suspect if I receive the second one, the first one will also be satisfied and their respective actions invoked; or, going down sequentially through the conditions, will the matching stop at the first satisfied match?

User avatar
DemoPad
Site Admin
Posts: 770
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: 2-way behavior with Data

Post by DemoPad » Tue Apr 14, 2015 8:19 pm

Both will be satisfied, and both sets of actions will occur. Feedback conditions are tested for in the order they are entered in the software, but the software does not stop checking if it finds a match - it runs through all conditions.

rajkhurana
Posts: 6
Joined: Tue Jun 10, 2014 8:57 am

Re: 2-way behavior with Data

Post by rajkhurana » Mon Dec 21, 2015 2:44 pm

Hi,

Is there anyway of converting a data i.e Partly cloudy from a 2 way feedback to convert to a number which triggers a flag or go directly from feedback to flag?

I can send the data to a label ok.

Thanks
Raj

cv27
Posts: 233
Joined: Sat Nov 24, 2012 10:15 pm
Location: Montréal, QC, Canada

Re: 2-way behavior with Data

Post by cv27 » Tue Dec 22, 2015 8:18 pm

I suspect I may not have clearly understood the question or else...Why not have a 2-way feedback action that sets a flag or number?

rajkhurana
Posts: 6
Joined: Tue Jun 10, 2014 8:57 am

Re: 2-way behavior with Data

Post by rajkhurana » Wed Dec 23, 2015 12:45 pm

Hi Thanks for replying back to me.

Basically I have 2 way feedback that sends back the weather condition. i.e Partly Cloudy. So if the feedback is Partly Cloudy then I want the system to bring up an image of a Partly cloudy and if its rain image of rain and so on.

So I can see the partly cloudy show up on the label but I want some way to use a flag which allows an image to represent the weather.

I hope that made sense :(

Do you know of way to use text to send a flag?

Thanks
Raj

User avatar
DemoPad
Site Admin
Posts: 770
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: 2-way behavior with Data

Post by DemoPad » Thu Dec 24, 2015 10:27 am

You need to specify the text coming back, so rather than doing:

weather=(.*) for example, which might pull out 'Party Cloudy' to a label with a pattern match, you'd have a specific data feedback condition:

weather=Party Cloudy - and then double click to add an action which would be to set the partlycloudy flag to exclusively on, and use that flag to show the image.

Post Reply