First of all, I am a newbie and apologize if this was asked in forum.
when I look at some sample code(Fruit Ninja) from Corona. one piece of code is written like this.
function shootObject(type)
local object = type == “fruit” and getRandomFruit() or getBomb()
…
end
What does this mean? Could someone help explaining this please?
Pixio [import]uid: 63983 topic_id: 25540 reply_id: 325540[/import]