Aha.
Nem egy script van amiben ilyet találni, pl:
y_commands:
static stock Command_RemoveFromBintree(func)
{
if (!Command_IsSorted()) return;
// This function has to find the right index in the binary tree, as that\'s
// not in the same order at all.
new
leaf,
hash = Command_PackHash(Command_Name(func));
// Find where in the binary tree this is referenced from.
while (Bintree_FindValue(YSI_g_sSearchTree, hash, _, leaf) != BINTREE_NOT_FOUND)
{
if (YSI_g_sSearchTree[leaf][E_BINTREE_TREE_POINTER] == func)
{
P:2(\"Command_RemoveFromBintree: Delete branch\");
Bintree_Delete(YSI_g_sSearchTree, leaf, YSI_g_sCommandCount);
return;
}
}
}
Hát még amikor szkripteltem, akkor az utasítássor megszakítására használtam - arra bevált. Tehát értelemszerûen, ami ez után az utasítás után található, az már nem fog lefutni( persze az elágazások itt is nyilván érvényben vannak ). Tehát például:
//Valamilyen kódrészlet
if( someVar == 123 ) {
//Le fog futni
someBool = true;
return;
//Ez viszont már nem
someBool = false;
} else {
//Ez viszont a feltétel értékétõl függ, hogy le fog-e futni, vagy sem
someBool = false;
}