[GAP Forum] if statement
Neha Gupta
neha.gupta2008 at googlemail.com
Thu Jul 2 16:54:51 BST 2009
Dear GAP Member,
I have written the following code but there is some run time error.
The code is as follows :
if i1=1 then x:=count[1];; else y:=count[i1];; fi;
if (i1>1) then
if (y< x) then
Print("\n",count[i1],"<",count[1],"\n");
return elems[i1]; fi;
fi;
if (ctr = 1) then
Print ("\n We are done....\n\n\n");
return elems[i1];
fi;
And the error it gives is as follows :
Error, no method found! For debugging hints type ?Recovery from
NoMethodFound
Error, no 1st choice method found for `LT' on 2 arguments called from
y < x called from
<function>( <arguments> ) called from read-eval-loop
Please help.
Best,
Neha
More information about the Forum
mailing list