Hello, everybody,
can someone explain to me with an example how to use the script function?
Parameter Script/Macro
Moderators: remi77, jacs, Daniel
-
- Private First Class
- Posts: 10
- Joined: Mon Jul 02, 2007 11:50 am
- Location: Yambol, Bulgaria
- Contact:
Re: Parameter Script/Macro
switch-case with Par1: integer TopSolid parameter
Code: Select all
int a = 5;
int b = 10;
int p = Par1;
switch(p/10)
{
case 1:
return p * a;
case 2:
return p * b;
default:
return 100;
}
; )