Or What?

new topic     » topic index » view thread      » older message » newer message

------=_NextPart_000_000B_01C050CE.289C7080
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

I've been wrting a program that needs to check a few instances before =
executing an if statement. Like so:

if X=3D1 (somecommand) Y=3D2 then
puts(1,"X=3D1 and Y=3D2")
end if

Can I use or for this? Is it as literal as it sounds? Like if this =
variable or this variable equals this, then do the following.(?)

-Thanks
-Thomas



------=_NextPart_000_000B_01C050CE.289C7080
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I've been wrting a program that needs =
to check a=20
few instances before executing an if statement. Like so:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>if X=3D1 (somecommand)&nbsp;Y=3D2 =
then</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>puts(1,"X=3D1 and Y=3D2")</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>end if</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can I use <EM>or</EM> for this? Is it =
as literal as=20
it sounds? Like if this variable or this variable equals this, then do =
the=20
following.(?)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>-Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-Thomas</FONT></DIV>
<DIV>&nbsp;</DIV>

------=_NextPart_000_000B_01C050CE.289C7080--

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu