Please enable JavaScript.
Coggle requires JavaScript to display documents.
Calculate Transfer v2 (calculateTransfer (startUserInput (%finalRate=null,…
Calculate Transfer v2
calculateTransfer
startUserInput
%ssCurrency=null
%sdCountry=null
%sdCurrency=null
%finalRate=null
$ %ratesJson each(%sourceCountry)
next
%sourceCountryName=$.name %sourceCountry
$ %sourceCountries add(%sourceCountryName)
exit
%message.selectTheSourceCountry
///%sourceCountries %ssCountry
%sourceCurrenciesJson=$[
?(@.name
=="%ssCountry")].currencies %ratesJson
$ %sourceCurrenciesJson each(%sourceCurrency)
next
1 more item...
exit
2 more items...
%sourceCountries=[]
%sourceCountry=null
%sourceCountryName=null
%sourceCurrencies=[]
%sourceCurrency=null
%sourceCurrencyName=null
%sourceCurrenciesJson=null
%destCurrenciesJson=null
%destCountriesJson=null
%destCurrencies=[]
%destCountries=[]
%destCurrency=null
%destCountry=null
%destCurrencyName=null
%destCountryName=null
%sourceAmount=null
%destAmount=null
%foundRate=null
%ssCountry=null
%ratesJson=%bot.ratesJson
%decimals=2