Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.from
#1
quick question... i was just messing aroud with adding variables and the qm told me to use:

Instead of c=a+b use c.from(a b)
but can u break that down for what each variable represents in this situation?
#2
basically it's saying this.

make c= to the combination of a and b.

or

glue a and b together and make c equal to that....i use it all the time!

a b and c are all string variables and can be any string value.
An old blog on QM coding and automation.

The Macro Hook
#3
see i tried something like that but i couldnt get it to work...

so for example if i made

str a=1
str b=2
str c=3

then tried to make it act as an id, like,:

but+ c.from(a b)

if i wanted it to but+ id 3?... i dont know i was just experimenting but if u have any more advice please fill me in... thx
#4
your assining string vars like integer vars.

if a b and c are strings you assign values like this.
str a b c
a="1"
b="2"
c="3"

c.from is a string only function you're trying to make it add numbers together.
to do that it's just a simple

int a b c
a=1
b=2
c=3

c=a+b;;which will also equal 3
An old blog on QM coding and automation.

The Macro Hook
#5
hahaha your right what was i thinking lol... ty for all the help man appreciate it.
#6
np....
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 1 Guest(s)