• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

TextEdit %new_val

I have some Scenes with a number of TextEdit elements.

These elements have a Text Changed option to permit me to assign the submitted data to a variable. Something like ...

Variable Set %TestData to %new_val

This works like a champ except for one thing ...

If the scene is terminated and there is no data in the Element it is reported as %new_val

I want to test for this condition and if the is no entered data in the field I want to ...

Variable Set %TestData to *

I can find no way to do this in Tasker ... %new_val seems to be a special case.

Any suggestions?

... Thom
 
Well ... I kept hacking away and hacking away and stumbled on the solution.

My guess is a glitch in handling the % in Tasker. This works ...

If %TestData ~ *new_val
Variable Set %TestData to *
End If

If a string contains new_val it will give a false answer.

(Testing for *%new_val does not work.)

... Thom
 
Back
Top Bottom