Page 1 of 1

Parameter Script/Macro

Posted: Fri Feb 07, 2020 1:55 pm
by MOLD_4.0
Hello, everybody,
can someone explain to me with an example how to use the script function?

Re: Parameter Script/Macro

Posted: Wed Jul 15, 2020 2:59 pm
by Beco
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;
}