Page 1 of 1
					
				Download manager notification
				Posted: 17 Feb 2014 18:46
				by MURTUMA
				How can I use OR operator in this script? I have tried various things but nothing seems to work.
http://automagic4android.com/flow.php?i ... cd82dbedc8 
			 
			
					
				Re: help with expression?
				Posted: 17 Feb 2014 18:59
				by Martin
				The expression looks good to me. Please add a condition 
Debug Dialog in the flow to see what 
title contains when the flow is executed automatically.
You can also initialize the variable title in the condition right before the condition is evaluated to make some experiments with the script.
For example change the script in the condition to this script and select Menu->Execute:
Code: Select all
title = "abc Finish xyz";
contains(title, "Finish") OR contains(title, "complete")
 
			 
			
					
				Re: help with expression?
				Posted: 17 Feb 2014 20:34
				by MURTUMA
				Ok, the problem lies somewhere else then. I noticed that the notification contains only text and not title. It reads "(file name) Download complete." I've tried the the word "complete" with and without period. Neither works. Notification is from download manager sysstate app.
EDIT: Edited the topic to more suitable to the new problem, as the first one wasn't actually a problem atall.