SBSPSS/data/Scripts/test.scr

38 lines
415 B
Plaintext
Raw Normal View History

2000-12-08 21:47:12 +01:00
// Crappy test program
// Prints a number based upon another one ( eh? )
2000-12-12 21:51:59 +01:00
//#print something..
#include data/scripts/defs.scr
2000-12-08 21:47:12 +01:00
// No switch statements here..
2000-12-12 21:51:59 +01:00
if($tmp1==ONE)
2000-12-08 21:47:12 +01:00
{
$tmp2=11;
}
2000-12-12 21:51:59 +01:00
else if($tmp1==TWO)
2000-12-08 21:47:12 +01:00
{
$tmp2=22;
}
2000-12-12 21:51:59 +01:00
else if($tmp1==THREE)
2000-12-08 21:47:12 +01:00
{
2000-12-12 21:51:59 +01:00
$tmp2=30+3;
2000-12-08 21:47:12 +01:00
}
2000-12-12 21:51:59 +01:00
else if($tmp1==FOUR)
2000-12-08 21:47:12 +01:00
{
// Stop here!
stop;
}
// Have a rest..
pause;
// Show result and stop
if($tmp2!=0)
print($tmp2);
else
2000-12-12 21:51:59 +01:00
print(5432);
2000-12-08 21:47:12 +01:00
stop;