Code: Select all
:local usb "usb4"
:local myNum "0951490XXXXX"
:local acceptNum {"GCash"; "+6395149XXXX"}
/tool sms inbox
:foreach item in=[find] do={
:local uphone [get $item phone]
:local newMess [get $item message]
:local uphone [get $item phone]
:local variable {"GCash"; "+6395149XXXX"}
/tool sms send $usb $myNum message="$newMess\n\n\n\nReceived From: $uphone"
([/tool sms inbox remove [find where phone!="+639514XXXXX"]] or [/tool sms inbox remove [find where phone!="GCash"]])
}