How to compare a String Value from http request?

Post your questions and help other users.

Moderator: Martin

Post Reply
ChaosNo1
Posts: 9
Joined: 14 Sep 2013 13:38

How to compare a String Value from http request?

Post by ChaosNo1 » 14 Sep 2013 13:47

Hi,

i am new with Automatic. I try to control my music player via http requests. For this i added a trigger for it.

If i want to play the next song, i call http://192.168.xx.xx/am/spotify?action=nxt

When i put a message to the statusbar with the variable {param_action} the nxt is shown on it.

In my flow i try now to handle the action. So i have created a expression that should compare the given parameter. The Expression looks like this:

param_action=="nxt"

but this returns false. Also param_action==nxt returns false.

I checkted if param_action has a value but isEmpty(param_action) also returns false, so it definitly has a value.

Can anyone help me here?

Thank You!

ChaosNo1
Posts: 9
Joined: 14 Sep 2013 13:38

Re: How to compare a String Value from http request?

Post by ChaosNo1 » 14 Sep 2013 14:54

found the solution! I have to use single quotes instead of double quotes ;)

Post Reply