[scilab-Users] Stupid question

jasper van baten jasper at amsterchem.com
Fri Sep 9 09:23:20 CEST 2011


Dear Paul,

Check for ~test (~ is the not operator).

Best wishes,

Jasper.

At 09:19 9/9/2011, you wrote:
>Dear Antoine,
>
>I used an example that seems not to be 
>convinient ... I would like to find a (good) way 
>to do the following algorithm :
>
>Test = %f
>
>If ( test is false) then launch my_function
>
>Nothing is done if test == %t
>
>
>
>My example works, but it looks ugly for me
>
>
>Paul
>
>
>
>
>-----Message d'origine-----
>De : Antoine Monmayrant [mailto:antoine.monmayrant at laas.fr]
>Envoyé : vendredi 9 septembre 2011 09:13
>À : users at lists.scilab.org
>Objet : Re: [scilab-Users] Stupid question
>
>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
>
>--------------------------------------------------------------------------------
>
>
>Le présent mail et ses pièces jointes sont 
>confidentiels et destinés à la personne ou aux 
>personnes visée(s) ci-dessus. Si vous avez reçu 
>cet e-mail par erreur, veuillez contacter 
>immédiatement l'expéditeur et effacer le message 
>de votre système. Toute divulgation, copie ou 
>distribution de cet e-mail est strictement interdite.
>
>This email and any files transmitted with it are 
>confidential and intended solely for the use of 
>the individual or entity to whom they are 
>addressed. If you have received this email in 
>error, please contact the sender and delete the 
>email from your system. If you are not the named 
>addressee you should not disseminate, distribute or copy this email.




More information about the users mailing list