The "conditions" allow you to create mechanisms and widgets only so some variables are equal to some values.
Replace the line of the widget by:
<condition varName="camembert" type="==" value="10">
<widget widgetPicture="pomme.bmp" skyboxPart="2" posX="0" posY="0" />
</condition>
In addition, remove the newNode="45" in the mechanism, to stay on node 0.
Launch the game. The apple disappeared. Now, click on the mechanism. The apple reappeared. The mechanism transformed the camembert value into 10, and this "activated" all the XML contents between the opening and closing markers of "condition".
Now, you can put create different condition types :
You can also use the conditions to activate/unactivate mechanisms. Better still, you can "pile up" the conditions. See the data.xml file of the example, which contains some conditions like that.
Continue, the tutorial is almost finished!