I am trying to know if a number is inside a PARI/GP list but I do not know how to do it, this is my code:
mylist = listcreate();
... here I add some numbers with listput(mylist,XXXX)
/* How can I do the condition in the if... */
if(mynumber in mylist,print("SUCCESS"),print("ERROR"))
I am migrating from Python to PARI/GP some of my scripts and I am lost in those basic things, the manual is a little bit difficult to follow. Thank you!