ScriptSpot

Forum topic · General Scripting

Code writing efficiency

By JokerMartini · 2011-05-23

Description

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 (1)

Graph · 2011-05-24

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


if btnRefraction.state do
(
...
)