Jump to content
UBot Underground

Adding To/increasing A Variable


Recommended Posts

OK, I'm sort of embarrassed to ask this. I've been increasing variables by +1 for a while now. I want to increase a variable by +500.

 

In the parameters/Math Functions I have $EVAL and $RAND. Is this is regex thing? A $REPLACE or $REPLACE REGULAR EXPRESSION thing? How do I say:

 

#NUMBER (500) + 500 = #NUMBER (1000)

 

or do I have to update another variable? Like: #NUMBER (500) + 500 = #NUMBER2 (1000)

 

How do I enter this? :-P

Link to post
Share on other sites

set(#number, 500, "Global")
loop(10) {
    set(#number$add(#number, 500), "Global")
}
alert(#number)

 

 

 

 

 

the maths add,divide,subtract,multiply are not in the toolbox,you just write it like this,for the above that has the add function

 

drag number into the variable {#number}

then write + 500

{#number} + 500

when you click ok,Ubot parses the above into an add function

* = multiple

/ = divide

Link to post
Share on other sites

 

the maths add,divide,subtract,multiply are not in the toolbox,you just write it like this,for the above that has the add function

 

Ah ha, so it wasn't a stupid question. See what happens when you take a Photoshop guy and try to make him a programmer?

 

 

I was wondering what the loop thing was about. I just need:

 

set(#number,$add(#number,500),"Global")

 

Thanks!

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