shapeType = "rect"
if ( shapeType == "rect"
then
println( "Shape is a rectangle" ) ++rectCount
else
println( "Shape is not a rectangle" ) ++miscCount
)
It increments the rectCount variable every time a rect shapeType is passed to the block of code. Every time a shapeType that is not a rect is passed to the block, the variable miscCount is incremented.
"++rectCount" counts the number of the rect only, and it has no effect on the code,just continue to count,isn't it?
I am beginning to learn SKILL.Maybe it's a silly question,but thanks for your help very much.