Code writing efficiency

I'm always wanting to learn and see how others condense and write code more efficiently.
I was curious to know how and if possible other ways to condense this code?

Thanks

if (btnRefraction.state == true) do -- Refraction
(
	if rlRefraction.ckbxRawRefraction.state then
	(					
		re.addrenderelement (VRayRawRefraction())
		re.addrenderelement (VRayRefractionFilter())	
		)else(
		re.addrenderelement	(VRayRefraction()) 
	)
)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Graph's picture

youre doing this just to ***

youre doing this just to *** with me arent you?! ;)

if btnRefraction.state do
(
...
)

Raphael Steves

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.