[scilab-Users] Stupid question

Antoine Monmayrant antoine.monmayrant at laas.fr
Fri Sep 9 09:12:31 CEST 2011


Le 08/09/2011 22:18, Paul CARRICO a écrit :
> Dear all,
>
>
>
> Is there another way to test a Boolean than the following (ugly) one
>
>
>
> test =%f
>
> if (test) then
>
>
>
> else
>
>      printf("This is false\n")
>
> end
>
>
>
> Thanks
>
>
>
> Paul
>
>
Try this:

a=%f; b=%t;
printf(string(a));
printf(string(b));

Antoine




More information about the users mailing list