brad992 Posted December 4, 2012 Share Posted December 4, 2012 Okay, so here is my problem.. Basically i want this.. (this isn't out of the script but this is the basic problem) var mp,x,y:integer; begin x:=1 y:=1 mp:= 5 if(x=1) and(y=1) and(mp=5 or 6 or 8) then begin writeln('worked') end; end. so, i want it that if 'mp' equals either 5, 6 or 8 that it will continue on(but aswell as x=1 and y=1). I thought that simply doing that(mp=5 or 6 or 8) would work but it doesn't. If i add a new line as or(mp=6) then it will ignore x and y and i don't want that. Can anyone help me? please, it seems like an extremely easy fix that i'm somehow not getting. Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted December 4, 2012 Share Posted December 4, 2012 Something like this? [sCAR]program new; var mp, x, y: integer; begin x := 1; y := 1; mp := 5; if (x = 1) and (y = 1) and TIAContains([5, 6, 8], mp) then begin writeln('worked'); end; end.[/sCAR] Quote Link to comment Share on other sites More sharing options...