how to using varvar condition in automacro?
any example? i didn't find an example in macro manual
i can using var condition but i didn't get how to using varvar
in var condition just use name without '$' sign in macro variable
any idea? and tutor or example?
using varvar condition in automacro
Moderator: Moderators
-
- Human
- Posts: 20
- Joined: 03 Dec 2008, 15:46
- Noob?: Yes
-
- Halfway to Eternity
- Posts: 398
- Joined: 08 Jun 2012, 15:42
- Noob?: No
- Location: Brazil
Re: using varvar condition in automacro
[EN]
To set a variable, use the var or varvar (do not know the difference).
For example:
To use it, use the $NameFromVar.
For example:
To perform equations, the uses @eval
Can something is wrong, because I never really liked macros to be something more limited, so do not really studied them.
[PT-BR]
Para definir uma variável, use o var ou varvar (não sei a diferença).
Por exemplo:
Para usa-la, use o $NomeDaVar.
Por exemplo:
Para realizar equações, use o @eval
Posso esta errado em algo, pois nunca gostei muito de macros por ser algo limitado de mais, então não estudei muito elas.
To set a variable, use the var or varvar (do not know the difference).
For example:
Code: Select all
var brazil
varvar brazil
For example:
Code: Select all
var $brazil == 1
Code: Select all
$variavel = @eval (value [operating] value)
Can something is wrong, because I never really liked macros to be something more limited, so do not really studied them.
[PT-BR]
Para definir uma variável, use o var ou varvar (não sei a diferença).
Por exemplo:
Code: Select all
var brasil
varvar brasil
Por exemplo:
Code: Select all
$brasil == 1
Code: Select all
$variavel = @eval (valor [operador] valor)
Posso esta errado em algo, pois nunca gostei muito de macros por ser algo limitado de mais, então não estudei muito elas.
-
- Developers
- Posts: 1798
- Joined: 05 Dec 2008, 05:42
- Noob?: Yes
Re: using varvar condition in automacro
do not know the difference
Why even reply? That post of yours is just misleading and has no information about so-called nested variables [sic] varvar uses.because I never really liked macros to be something more limited, so do not really studied them
Neither set any variables.To set a variable, use the var or varvar
-
- Halfway to Eternity
- Posts: 398
- Joined: 08 Jun 2012, 15:42
- Noob?: No
- Location: Brazil
Re: using varvar condition in automacro
[EN]
Usually in foreign forums, I just could not explain what I mean right to avoid problems in the translation... But...
I do not know much about macros, but this passage is not quite my own, but a posting from another author on the Brazilian forum (http://openkore.com.br/index.php?/topic ... entry17205), the fact that I have not really focused on my macros could only have caused problems when checking the posting. Reviewed and found no problems when they posted this up because I've done something very similar.
Can you explain the difference between var and varvar?
Sorry for the inconvenience, I will avoid committing these problems again ...
[PT-BR]
Normalmente, em fóruns estrangeiros, eu acabo não explicando direito o que quero dizer para evitar problemas na tradução... Mas...
Eu não sei muito de macros, mas esse trecho não é bem de minha autoria, e sim de uma postando de outro autor no fórum brasileiro (http://openkore.com.br/index.php?/topic ... entry17205), o fato de eu não ter me focado muito em macros apenas poderia ter ocasionado problemas na hora de verificar a postagem. Revisei e não encontrei problemas na hora de ter postado isso, até por que já fiz algo bem semelhante.
Pode me explicar qual a diferença entre var e varvar?
Desculpe o inconveniente, irei evitar cometer esses problemas novamente...
Usually in foreign forums, I just could not explain what I mean right to avoid problems in the translation... But...
I do not know much about macros, but this passage is not quite my own, but a posting from another author on the Brazilian forum (http://openkore.com.br/index.php?/topic ... entry17205), the fact that I have not really focused on my macros could only have caused problems when checking the posting. Reviewed and found no problems when they posted this up because I've done something very similar.
Can you explain the difference between var and varvar?
Sorry for the inconvenience, I will avoid committing these problems again ...
[PT-BR]
Normalmente, em fóruns estrangeiros, eu acabo não explicando direito o que quero dizer para evitar problemas na tradução... Mas...
Eu não sei muito de macros, mas esse trecho não é bem de minha autoria, e sim de uma postando de outro autor no fórum brasileiro (http://openkore.com.br/index.php?/topic ... entry17205), o fato de eu não ter me focado muito em macros apenas poderia ter ocasionado problemas na hora de verificar a postagem. Revisei e não encontrei problemas na hora de ter postado isso, até por que já fiz algo bem semelhante.
Pode me explicar qual a diferença entre var e varvar?
Desculpe o inconveniente, irei evitar cometer esses problemas novamente...
-
- Human
- Posts: 20
- Joined: 03 Dec 2008, 15:46
- Noob?: Yes
Re: using varvar condition in automacro
i always fail to use varvar condition
this automacro start will triger after i use macro goin, that will set var from $set to 1
but if like this never triger
as i remember long time ago about 3 or 4 years ago
varvar use with variable special variable or special keyword
i was forgot how to using with varvar in macro
Code: Select all
automacro start {
var set == 1
call{
do something....
$set = 0
}
}
macro goin {
$set = 1
}
but if like this never triger
Code: Select all
automacro start {
varvar set == 1
call{
do something....
$set = 0
}
}
varvar use with variable special variable or special keyword
Code: Select all
automacro empty {
varvar @invamount(...) <= 1
call {
...
}
}
-
- Developers
- Posts: 1798
- Joined: 05 Dec 2008, 05:42
- Noob?: Yes
Re: using varvar condition in automacro
varvar isn't for @-keywords. As manual says, it's for checking "nested variables". If you aren't using them, you don't need varvar.