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>Serge<br>