Code : Tout sélectionner
function f(testvar):={
return when( testvar, true, false );
}:;
Parse error line 1 column 20 at :=
Modérateur : xcasadmin
Code : Tout sélectionner
function f(testvar):={
return when( testvar, true, false );
}:;
Code : Tout sélectionner
function f(testvar)
return when( testvar, true, false );
end;
Indeed, will be fixed.compsystems a écrit : ↑ven. mai 07, 2021 4:24 pmHello, in the case of the first post, this is the template that Xcas puts in the installation version for PC
Prg Menu New prg
when already accepts a 4th argument.about When cmd, I think it is very important to define a fourth parameter, that is, if it cannot evaluate to a logical value (firts arg), execute the fourth argument, this is important to define custom output messages or execute a third option T/F another, I think this is how the When command Works in the Texas instrument calculators.