Pimm
%Europe/Berlin %710 %2005, 18:03
Lo gasten, 'k heb nufunction solidcheck(checkthis) {
checkresult = "not solid";
for (checker=0; checker<=solid.length; checker++) {
if (checkthis == solid[checker]) {
checkresult = "solid";
}
}
return checkresult;
}
solid = ["a", "e", "i", "u", "o"];
trace("a is "+solidcheck(a));
trace("b is "+solidcheck(b));
trace("e is "+solidcheck(e));
trace("f is "+solidcheck(f));
trace("o is "+solidcheck(o));
trace("p is "+solidcheck(p));
trace("u is "+solidcheck(u));En als output wil ik dus hebbena is solid
b is not solid
e is solid
f is not solid
o is solid
p is not solid
u is solidMaar i.p.v. dat krijg ika is solid
b is solid
e is solid
f is solid
o is not solid
p is solid
u is solidEn ik had zoiets van "WTF mate?!"
Zie ik hier iets over't hoofd ofzo? Klopt er iets niet aan mijn code?
Of als iemand een altenatief heeft is dat ook goed.
Bedankt,
Je mate, Pimm.
checkresult = "not solid";
for (checker=0; checker<=solid.length; checker++) {
if (checkthis == solid[checker]) {
checkresult = "solid";
}
}
return checkresult;
}
solid = ["a", "e", "i", "u", "o"];
trace("a is "+solidcheck(a));
trace("b is "+solidcheck(b));
trace("e is "+solidcheck(e));
trace("f is "+solidcheck(f));
trace("o is "+solidcheck(o));
trace("p is "+solidcheck(p));
trace("u is "+solidcheck(u));En als output wil ik dus hebbena is solid
b is not solid
e is solid
f is not solid
o is solid
p is not solid
u is solidMaar i.p.v. dat krijg ika is solid
b is solid
e is solid
f is solid
o is not solid
p is solid
u is solidEn ik had zoiets van "WTF mate?!"
Zie ik hier iets over't hoofd ofzo? Klopt er iets niet aan mijn code?
Of als iemand een altenatief heeft is dat ook goed.
Bedankt,
Je mate, Pimm.