Une tite question au passage : comment je peux vérifier l'existence d'une variable ?
Par exemple comment vérifier qu'il y'a quelque chose dans y1 ?
MacIntoc a écrit :
If gettype(y1)="NONE"
text "y1 existe pas"
c moins universel, mais c plus rapide et ça prend moins de place.
MacIntoc a écrit :
If gettype(y1)="NONE"
text "y1 existe pas"
c moins universel, mais c plus rapide et ça prend moins de place.
:Local none :getType(none)->none :If getType(f1)=none :disp "f1 n'existe pas"
azerty83 a écrit :
hum, ca ve etre dur d'optimiser plus
:Local t :getType(t)->t :If getType(f1)=t :disp "f1 n'existe pas"
local notexist if gettype(notexist)=/="NONE" then text "Met ta calc en anglais, blaireau !" stop endif
Vertyos a écrit :local notexist if gettype(notexist)=/="NONE" then text "Met ta calc en anglais, blaireau !" stop endif
et ensuite :
if(gettype(var)="NONE") : .......
:Local none :getType(none)->none
:If getType(var)=none :...
azerty83 a écrit :
et tu l'identifie comment la langue utilisée ?