[Solved]Evaluating number using 'int' ?
Posted: 01 May 2020, 11:46
error in 5: Unrecognized --> int <-- Sub-Routine
automacro num99 {
console /num(\d+)~(\d+)/
call {
$numone = @eval ($.lastMatch1 + $.lastMatch2)
$numtwo = @eval ($numone / 2)
$numthree = int(@eval($numtwo))
do talk num $numthree
}
}
how to write?
automacro num99 {
console /num(\d+)~(\d+)/
call {
$numone = @eval ($.lastMatch1 + $.lastMatch2)
$numtwo = @eval ($numone / 2)
$numthree = int(@eval($numtwo))
do talk num $numthree
}
}
how to write?