Getting string instead of operator value in tscript

I would like to cook 2 operators depending on the id and the limit3 operator.
When I set the value to the limit3 operator, I get a string and not the int.
What am I doing wrong?
The Python Console gives me: par ( limit3:chan1 )

if $currID = 6
	opset -c 1 project"$currID"
	set a = par("limit3:chan1")
	opset -c 1 project"$a"
	print( $a )
endif