Dear all,<br><br>I found it, Thank you anyway.<br><br>if (a> b)<br>
'define c= b'<br>
else<br>
'define c= a'<br>
endif<br>
'define d=c/b'<br><br>Regards,<br><br>Serge<br><br><br><div class="gmail_quote">On Thu, Jul 7, 2011 at 12:40 AM, Rafanoharana Serge Claudio <span dir="ltr"><<a href="mailto:rafanoharana@gmail.com">rafanoharana@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Dear all,<br><br>My file contains 2 variables a and b. I have the following condition:<br><br>if a>b => c=b<br>if a<b => c=a<br>
<br>so: d=c/b<br><br>in my .gs file, I tried:<br><br>'!if (a> b)'<br>'c= b'<br>
'!else'<br>'c= a'<br>'!endif'<br>'define d=c/b'<br><br>but it gives syntax error.<br><br>Then I tried to define the c like:<br><br>
'!if (a> b)'<br>
'define c= b'<br>
'!else'<br>
'define c= a'<br>
'!endif'<br>
'define d=c/b'<br><br>Again, syntax error.<br><br>ERROR:<br>sh: -c: line 1: syntax error: unexpected end of file<br>sh: -c: line 0: syntax error near unexpected token `else'<br>sh: -c: line 0: `else'<br>sh: endif: command not found<br>
<br><br>Thank you in advance,<br><br><br>Best regards,<br clear="all"><br>-- <br><font color="#888888">Serge<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Serge<br>