Hello guys i have very difficult problem. It will be easy for you.
Function trade1(){
Timeframe=1;
If (confition1){
If(asset("eur/jpy"))
Printf("Buyeurjpy");
Else if(asset("gbp/jpy"))
Printf("Buygbpjpy");

}
}
Function run(){
While(asset(loop("eur/jpy","gbp/jpy")))
While(algo(loop("code1")))
{
If(algo=="code1")
Trade1();
}
}


I run this. Condition1 met at eurjpy and gbpjpy at same time. Then gives me unwanted this result in zorro's display and log:

BuyeurjpyBuyeurjpy

Actually i need result of

BuyeurjpyBuygbpjpy

How can i solve this. If you help me i reward you:-)