16.06.2011, 21:21
In dit topic kun je alle 'minitutorials' neerzetten. Bijvoorbeeld:
Short-hand notatie if-else
In plaats van:
kan je de short-hand notatie gebruiken:
Short-hand notatie if-else
In plaats van:
pawn Code:
if(thisIsSparta <= 9000)
{
echo "Under 9000 (or the same, but meh)";
} else {
echo "OVER 9000!!!!!!!";
}
pawn Code:
echo (thisIsSparta <= 9000) ? "Under 9000 (or the same, but meh)" : "OVER 9000!!!!!!!";