prolog variable not exist -
In Swi prolog, I have a simple program to test this in other and function calls. What is wrong with the code given below Which says rule
does not exist
call_rule (roll): - (member (roll, [123]), writing ('inside call rule') , Nb_getval (rule, 'this is the rule')). Print_roll (roll): - (roll and lieutenne; 2 -> rightlane ('not a roll'); (roll> 1243 -> written ('no one roll'), righten ('this second option (Rolls =: = 12 -> Writelan ('boxers'); (call_arl (roll) -> NB_GATEVAL (RULES, RULES), RITELLAN (' Snake eyes'); Nb_gatewall (rule, SUBJECT, RETLAN (SUBJECT))))). Error: nb_getval / 2: variable `rule 'does not exist
Before you can get a price from the non-baktakable store, you will be given anb_setval
key is required:Example :
? - NB_GATEVAL (A, X) ERROR: nb_getval / 2: variable `A 'does not exist? - nb_setval (a, foo). truth. ? - NB_GATEVAL (A, X) X = FU
Comments
Post a Comment