Jump to content
UBot Underground

[solved] Multiple if statements? Comparison? Both?


Recommended Posts

how do I say this in ubot:

if A is <= 30000 BUT >20000
AND
if B is <=20000 BUT > 15000

Then {do this}

So far I've tried a large mixture of $both and $comparison

Edited by katelynnm
Link to post
Share on other sites

Hi,

 

Code:


set(#a, 21000, "Global")
set(#b, 29000, "Global")
if($both($both($comparison(#a, "<=", 30000), $comparison(#a, ">", 20000)), $both($comparison(#b, "<=", 20000), $comparison(#b, ">", 15000)))) {
    then {
        alert("do this")
    }
    else {
    }
}

Kevin

Link to post
Share on other sites

Thank you, everyone-I just figured it out  :)

if($both($comparison(#globalrank, "<=", 50000), $comparison(#globalrank, ">", 40000))) {
        then {
            if($both($comparison(#googleresults, "<=", 30000), $comparison(#googleresults, ">", 25000))) {
                then {
                    add item to list(%oklist, #final_row, "Delete", "Global")
                }
            }
        }
    }
Edited by katelynnm
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...