heres my code
Code: Select all
{
/ppp secret
:foreach item in=[find] do={
:local prof [get $item profile]
:local comm [get $item comment]
:local profCom "10 MBPS old 599 test"
:if (($prof) = ($profCom)) do={
:local accNum [:pick $comm ([:find $comm "Number: "] + 8) [:find $comm " Plan:"]]
:local cost [:pick $comm ([:find $comm "Cost: "] + 6) ([:len $comm])]
:local bill ($cost + 899)
:local billmsg "Acc Number: $accNum Plan: 10mbps Cost: $bill"
[/ppp secret set [find profile="10 MBPS old 599 test"] comment=$billmsg]
:delay 1
} else={
:log warning "hays"
}
}
}
on this image acct number and bill are different .
then when i run the code, they became same value
Please help, thankyou