Parse Notification_Text

Post your questions and help other users.

Moderator: Martin

Post Reply
Gord
Posts: 3
Joined: 22 Dec 2013 03:31

Parse Notification_Text

Post by Gord » 22 Dec 2013 03:54

...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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Parse Notification_Text

Post by Martin » 22 Dec 2013 11:07

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

Post Reply