Jump to content
UBot Underground

Needing A Little Comparison Help...


Recommended Posts

UBot command for logical AND operation is called BOTH, so pseudo code would look like this: IF BOTH(CONATINS(#var,"ABC"),CONATINS(#var"XYZ")) THEN...

Link to post
Share on other sites

if($both($contains("the runner wins""wins"), $contains("the runner wins""the"))) {
    then {
        alert("")
    }
    else {
    }
}

Link to post
Share on other sites

Thanks guys - I appreciate it!

 

Still having trouble so let's approach from a different perspective.

 

Lets say that I have a variable that contains the sentence: the brown dog has fleas

 

And I want to read that variable, and if it has the word "brown" then I want to replace that word with a different word contained in a different variable. In addition, if that sentence has the word "fleas" in it, then I want to also replace that word with a different word that is also contained in a different variable.

 

So, i have 3 variables...

 

#var1 = the brown dog has fleas

#var2 = black

#var3 = big feet

 

So, my function would need to change #var1 from it's current sate to the new state of: the black dog has big feet

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...