On Saturday 16 November 2013 21:50:52 Ivanko B wrote: > if 2 <> var1 then begin // double stuff > result:= true; // single stuff > end else begin // triple stuff > result:= false; // single stuff > end; // double stuff > What do you want to say with this? You probably know how MSEgui code is written, there is always a begin/end in "if"s also for a single statement: " if var1 <> 2 then begin result:= true; end else begin result:= false; end;
if var1 <> 2 then begin result:= true; var1:= 3; end else begin result:= false; var1:= 5; end; " and there is always a terminating ';' in order to have the same code structure independent of the statement count. In the proposed new syntax above becomes " if var1 <> 2 then result:= true; else result:= false; end; if var1 <> 2 then result:= true; var1:= 3; else result:= false; var1:= 5; end; " which has the same structure and is shorter. With highlighting it looks as in attachment. Martin
<<attachment: if.png>>
------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk