[Scilab-users] Question on switch

Samuel Gougeon sgougeon at free.fr
Fri Mar 8 22:23:46 CET 2019


Hello Federico,

I have nothing to add to comments posted for the bug 14940 
<http://bugzilla.scilab.org/show_bug.cgi?id=14940>  about this topic.

Le 08/03/2019 à 20:46, Federico Miyara a écrit :
>
> Dear all,
>
> I've seen that Scilab accepts the conditional switch clause like 
> Matlab and C, and it seems to work as expected. But when one attemps 
> to get help on switch the result refers to a switch block from Xcos.
>
> Indeed, it is not documented among the control flow keywords.
>
> I wonder if it is or will be deprecated, and if it is advisable not to 
> use it and use select instead (like in Fortran and Basic).
>
> The mfile2sci function converts the switch clauses to select.

Yes, it's enough.

>
> Thank you.
>
> Regards,
>
> Federico Miyara

Regards
Samuel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190308/86b2f9af/attachment.htm>


More information about the users mailing list