Page 1 of 1

Parse Notification_Text

Posted: 22 Dec 2013 03:54
by Gord
...Any thoughts on the logged error "Could not evaluate expression 'left(notification_text, 17) = "[My Test Text Here]"'
This is part of a flow that is supposed to look for specific text in a Notification message and, should it be there, continue executing the flow. Unfortunately the flow exits on the error as outlined above. I program many things but I am a bit new to Automagic.
Samsung Note2
Android Jellybean
Automagic Beta

Re: Parse Notification_Text

Posted: 22 Dec 2013 11:07
by Martin
Hi,

You can compare two values with the operator ==.
Following expression should work:

Code: Select all

left(notification_text, 17) == "[My Test Text Here]"
You could also use function startsWith in this case:

Code: Select all

startsWith(notification_text, "[My Test Text Here]")
Regards,
Martin