|  | 
	
	
		| stark62 Wanderer
 
 
 Joined: 04 Apr 2003
 Posts: 94
 Location: United Kingdom
 
 | 
			
			  |  Posted: Thu Jan 28, 2010 5:10 pm 
 Seems basic but its getting me
 
 |  
				| ok simple - got two variables 1 = stringlist with loads of disease on it 2 = disease/diseases i have now 
 ok i tried this but only works if i got one ailment
 
 #if (%ismember( @diag002, @healup2test)) {smile}
 
 eg if i get flu a trigger adds flu to diag002
 then i get drunk - adds drunk to diag 002
 
 in healup2test i got a list  - lest say flu|drunk|wind|cramp|shingles
 
 so I am after if any of the ailments in healup2test are also in diag002 then smile whether thats 1 disease or all
 
 i put smile to test
 |  | 
	
	  |  | 
	
		|  | 
	
		| MattLofton GURU
 
 
 Joined: 23 Dec 2000
 Posts: 4834
 Location: USA
 
 | 
			
			  |  Posted: Thu Jan 28, 2010 7:56 pm 
 |  
				| #forall @diag002 { #if (%ismember(%i,@healup2test)) {smile}
 }
 |  | 
	
	  | 
		    
			  | _________________ EDIT: I didn't like my old signature
 |   |  | 
	
		|  | 
	
		| stark62 Wanderer
 
 
 Joined: 04 Apr 2003
 Posts: 94
 Location: United Kingdom
 
 | 
			
			  |  Posted: Fri Jan 29, 2010 4:14 am 
 |  
				| Thanks Matt 
 Ok that works but if there are 3 things from @healuptest2 in @diag002 - i smile x3 times
 
 any way I can only smile once
 
 eg if 1 or more items from @healup2test are in @diag002 - I just smile once if that makes sense
 |  | 
	
	  |  | 
	
		|  | 
	
		| MattLofton GURU
 
 
 Joined: 23 Dec 2000
 Posts: 4834
 Location: USA
 
 | 
			
			  |  Posted: Fri Jan 29, 2010 5:32 am 
 |  
				| change "smile" to "smile;#abort 1" 
 |  | 
	
	  | 
		    
			  | _________________ EDIT: I didn't like my old signature
 |   |  | 
	
		|  | 
	
		| stark62 Wanderer
 
 
 Joined: 04 Apr 2003
 Posts: 94
 Location: United Kingdom
 
 | 
			
			  |  Posted: Fri Jan 29, 2010 5:39 am 
 |  
				| Perfect you win the big  for today 
 |  | 
	
	  |  | 
	
		|  | 
	
		|  | 
	
		|  |