pitale
04-10-2010, 11:49 AM
i am trying to sort out the meaning between these 2 ways of code written format
1.
if (snowFactor > 100) snowA._alpha = snowB._alpha = snowFactor
2.
if (snowFactor > 100) {
snowA._alpha = snowB._alpha = snowFactor
}
Is it the same? The first one has no parenthesis. Why is that?
1.
if (snowFactor > 100) snowA._alpha = snowB._alpha = snowFactor
2.
if (snowFactor > 100) {
snowA._alpha = snowB._alpha = snowFactor
}
Is it the same? The first one has no parenthesis. Why is that?