How update IP Cloud with script?

My mikrotik use 2 internet interfaces (i.e ether1 & ether2) and use load balancing connection. Now the default internet connection to my LAN is ether1 so IP cloud get the public IP from ether1.

In this time I use the script bellow to auto update ip ddns host no-ip.com. This script runs with scheduler. My host of IP Cloud i.e XXX.sn.mynetname.net.
I want to update the IP Cloud from public IP of ISP whichever.
With the script bellow, if I want to change IP of "my_noip_host" become ether2 public IP, so I just change line ":local Inet1 "ether1"" become ":local Inet1 "ether2"" and change line ":local Inet2 "ether2"" become ":local Inet2 "ether1""

How can I update my IP Cloud Host with making customization my script bellow?

--------------------------------------------

DDNS Auto Updater Scripts

Custom script by StefDeddy

--- Account DDNS -----------

:local DDNSuser "my_user"
:local DDNSpwd "my_pwd"
:local DDNShost "my_noip_host"

---------------------------------

--- Interfaces Internet ----

2 Lines bellow are used to change no-ip host IP with public IP from ISP whichever

:local Inet1 "ether1"
:local Inet2 "ether2"

---------------------------------

:local currentIP1 ""
:local currentIP2 ""
:global previousIP
:global IPDDNS
:global IPInet1 ""
:global IPInet2 ""

:log info "--------------- start ---------------------"
:log info "Hostname: $DDNShost"
:log info "Inet1 interface: $Inet1"
:log info "Inet2 interface: $Inet2"
:log info "-------------------------------------------"

{
:if ([/ping 8.8.8.8 interface=$Inet1 count=5] > 1) do={

:local tmpIP [/ip address get [/ip address find interface=$Inet1 ] address];
:set IPInet1 [:pick $tmpIP 0 [:find $tmpIP "/"]];
:log info ">> IP Inet1: $IPInet1"
:set currentIP1 $IPInet1
/ip dns cache flush
:set IPDDNS [:resolve $DDNShost]
:log info ">> Current DDNS Host IP: $IPDDNS"
:log info ">> Current public IP from $Inet1: $currentIP1"

:if ($currentIP1 != $IPDDNS) do={

:log info "-------------------------------------------"
:log info ">> Current public IP is not same with DDNS Host IP. Require update IP."
:set previousIP $IPDDNS
:set IPDDNS $currentIP1
:local url "http://dynupdate.no-ip.com/nic/update\3Fmyip=$currentIP1"
:local DDNShostArray
:set DDNShostArray [:toarray $DDNShost]

:foreach host in=$DDNShostArray do={

:log info ">> Sent update IP to DDNS Host.."
/tool fetch url=($url . "&hostname=$host") user=$DDNSuser password=$DDNSpwd mode=http keep-result=no;
:log info ">> DDNS Host had been updated with IP $currentIP1"

}

} else={

:log info "-------------------------------------------"
:log info ">> Current public IP is same with DDNS Host IP. Not require update IP."

}

} else={

:log info ">> $Inet1 is OFFLINE. Cannot update DDNS Host IP with $Inet1. Now try to update DDNS Host IP with $Inet2 ..."

}

:if ([/ping 8.8.8.8 interface=$Inet1 count=5] < 1) do={

:if ([/ping 8.8.8.8 interface=$Inet2 count=5] > 1) do={

:local tmpIP [/ip address get [/ip address find interface=$Inet2 ] address];
:set IPInet2 [:pick $tmpIP 0 [:find $tmpIP "/"]];
:log info ">> IP Inet2: $IPInet2"
:set currentIP2 $IPInet2
/ip dns cache flush
:set IPDDNS [:resolve $DDNShost]
:log info ">> Current DDNS Host IP: $IPDDNS"
:log info ">> Current public IP from $Inet2: $currentIP2"

:if ($currentIP2 != $IPDDNS) do={

:log info "-------------------------------------------"
:log info ">> Current public IP is not same with DDNS Host IP. Require update IP."
:set previousIP $IPDDNS
:set IPDDNS $currentIP2
:local url "http://dynupdate.no-ip.com/nic/update\3Fmyip=$currentIP2"
:local DDNShostArray
:set DDNShostArray [:toarray $DDNShost]

:foreach host in=$DDNShostArray do={

:log info ">> Sent update IP to DDNS Host.."
/tool fetch url=($url . "&hostname=$host") user=$DDNSuser password=$DDNSpwd mode=http keep-result=no;
:log info ">> DDNS Host had been updated with IP $currentIP2"

}

} else={

:log info "-------------------------------------------"
:log info ">> Current public IP is same with DDNS Host IP. Not require update IP."

}

} else={

:log info ">> $Inet2 is OFFLINE. Cannot update IP."

}

}

}
:log info "--------------- end -----------------------"