yes I could do that but what I'm really looking for is a shorter way
of doing a if then statements for about 200 thousand decimal numbers.

On Nov 5, 6:38 am, CK <[EMAIL PROTECTED]> wrote:
> ElseIf $cargo <> 12549944 or $cargo <> 6981005 then
>
> On 5 Nov, 08:15, Gotrek65 <[EMAIL PROTECTED]> wrote:
>
> > I'm experimenting with a program called AutoIT and the language is
> > very similar to VB.net which I've taken several classes about.
> > I'm trying to incorporate a decimal PixelGetColor result with a if
> > then statement. Heres what I have so far.
>
> > sleep(2000)
> > $cargo = PixelGetColor( 1629 , 896 )
> > If $cargo = 6981005 then
> >         MsgBox(0,"Cargohold Status","empty.")
> > elseif $cargo =12549944 then
> >         Msgbox(0,"Cargohold Status","full.")
> > ElseIf $cargo <> 12549944 or 6981005 then
> >         msgbox(0,"WTF?", $cargo)
> > EndIf
>
> > There are only two general colors that should show on this pixel an
> > orangeish color or silver/white but through out the macro the shading
> > of the pixel changes.
>
> > I'm not sure how to do a "Elseif $cargo doesn't=12549944 or 6981005
> > then" or Is there a way to do a "Elseif $cargo = 12000000-12999999
> > then"
>
> > Thanks

Reply via email to