| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Less than check |
Hi Dantin.
10-Dec-03 17:07:39, Dantin Hart wrote to All
DH> Is there a way to allow a less than check in dos batch
DH> programming? Some external software you can install or something.
DH> I've been looking all over for some reference for this. Here is
DH> what I'm doing trying to program a batch file that will check for
DH> a number = lessthan number. ie.. IF "%1" <
"10" THEN GOTO LOW.
DH> Any such beast?
not like that, but you can do
for %%x in ( 0 1 2 3 4 5 6 7 8 9 ) do if "%1" == "%%x" goto low
or
make_el %x
if not errorlevel 10 goto low
with make_el.com being some tool that sets errorlevel to a specified level.
works with numbers upto 255
here's one uuencoded and debug scripted)
n make_el.com
E 100 BE 81 0 B4 0
AC"<"0"t"1B"<0|"F7"<9"7F
F3",0"D5 A 88 C4
E 118
AC"<"0"t"8"<0|"4"<9~"ED 88
E0 B4"L"CD"!"
rcx
2b
w
q
begin 644 MAKE_EL.COM
KOH$`M`"L/`!T&SPP?/<\.7_S+##5"HC$K#P`=`{at}\,'P$/#E^[8C{at}M$S-(4S-=
``
end
-=> Bye <=-
---
* Origin: I'm pink, therefore I'm SPAM. (3:640/1042)SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.