QUOTE (Killerplayer @ 12 Sep, 2006, 17:38) |
I need help because this routine doesn't work i need a routine the returns zero if C or D or E or F not equal to zero and return zero if G!=8 or 80 or H!=8 or 48. Heres my code that doesnt work. I need it to return one only when both are right (((G=8 or G=80) or (H=8 or H=48)) and (C or D or E or F=12)) 0 if c or d or e or f !=0 0 if g!=8 or 80 or H!=8 or 48 |
CODE |
ec1(G=8 or G=80 or H=8 or H=48) and max(0={C,D,E,Fc2 |
QUOTE (Killerplayer @ 13 Sep, 2006, 17:09) |
o sweet thanks and yes i did but no one answered :(![]() |
CODE |
ec1DelVar XRepeat Ans X+1->X inString("AB..etc",Str1,X Endc2 |
CODE |
ec1DelVar XRepeat Ans or X=26;If inString works or it reaches the end quit loop X+1->X;advance the pointer inString("ABCDEFGHIJKLMNOPQRSTUVWXYZ",Str1,X->O;testing, store into O End;hope you know this If O:then;if inString contain what Str1 did, then excute this code. if it didnt find it, it continues onward ... End c2 |
QUOTE (Killerplayer @ 15 Oct, 2006, 15:08) |
kk thanks kalan_vod |
QUOTE (kalan_vod @ 13 Sep, 2006, 2:11) | ||
c1-->
ec2 |
CODE |
ec1(36=abs(G-44) or 20=abs(H-28))max(0={C,D,E,Fc2 |
QUOTE (xlibman @ 16 Oct, 2006, 12:33) |
yea he prbly wanted to make the code still understandable, or prbly radical_pi didnt checked this topic after his reply, interesting guide tho you posted here, tifreak8x should add it to his link section if not done alerady. Welcome here btw :)![]() |
QUOTE (Killerplayer @ 16 Oct, 2006, 16:46) |
thanks burr I like that code better and also kalan_vod there is nothing I dont understand about your code it is very fast and easy |
QUOTE (kalan_vod @ 15 Oct, 2006, 13:29) | ||
c1-->
ec2 |