How to judge the ordercomment Whether is  Null value

 
for(int s=0;s<OrdersTotal();s++)
                    {
                       if(OrderSelect(s,SELECT_BY_POS,MODE_TRADES)==true)
                         {
                           
                            string temp1=OrderComment();
                            Alert(temp1);
                            if(temp1!=NULL)
                              {
                                 Alert("ok");
                              }
                         }
                    }

The above code is wrong He reminded me '!=' - different types in comparison

judge the value wheather is null or no empty

 
zdj229:

The above code is wrong He reminded me '!=' - different types in comparison

judge the value wheather is null or no empty


OrderComment() returns a string . . .

if(temp1 != "")
   Alert("ok");
 
Also remember that brokers can change comments, including complete replacement.
Reason: