Anyways... This time I've got a question about my script that I wrote. I wrote a script that goes in an attachment on the HUD, and it listens to commands from the owner in the form "/2 gravity (%grav here)". I thought I had it all set up correctly, but for some reason this script I wrote simple blows both the >100 and <100 if statements at once, and I get both confirmation messages and it does nothing to the gravity of my avatar. Can anyone figure out what's wrong?
default
{
on_rez(integer start_param)
{
llResetScript();
}
attach(key id)
{
llResetScript();
}
state_entry()
{
llListen(2,"",llGetOwner(),""
;}
listen(integer channel, string name, key id, string message)
{
string num = llGetSubString(message, 8,-1);
integer numdivt = (integer)num/10;
if (message == "reset"

{
llResetScript();
}
if ( llGetSubString(message,0,7) == "gravity "

{
if ((integer)num > 300)
{
llOwnerSay("Too strong of a gravity force. Please choose a number between 1 - 300"
;llResetScript();
}
if ((integer)num <100)
{
llSetForce(<0,0,numdivt>, TRUE);
llOwnerSay("Gravity set to "+num+"%."
;}
if (100< (integer)num < 300)
{
llSetForce(<0,0,-numdivt>, TRUE);
llOwnerSay("Gravity set to "+num+"%."
;}
if (message == "gravity 100"

{
llSetForce(<0,0,0>, TRUE);
llOwnerSay("Gravity effects discharged."
;}
}
}
}

(heehee I am laughing as I typed that!)