Hi,

sorry, here's again one of my crazy syntactic sugar ideas: I think it would be nice if hansl had a more concise way of writing a basic if-endif block, where the thing to be executed is just a single line.

In other languages, this would be (AFAIK):

C:

if (<condition>) <execution> ;

Bash:

if <condition> ; then <execution> fi

Python:

if <condition> :  <execution>

So "every" language has such convenient one-liners (OK, it seems Matlab doesn't have it). I know hansl has the ternary expression (<condition> ? <resultTRUE> : <resultFALSE>), but this always has an else branch in it.

Don't know whether using : or ; would be better for hansl in this context. Perhaps a new keyword "iffi" could be used to signal this construct to gretl / to the parser.

Obviously extremely non-urgent, but for a while I've had the feeling that hansl code is quite a bit longer than it would have to be.

thanks

sven