Hi Sevilay,
Regarding the "when" and "otherwise" commands, yes: the first "when" works
as an "if", the following as "elsif" and the ending "otherwise" as an
"else" (or at least I have done so many times and apparently it works as I
expected).
Hèctor

Missatge de Sevilay Bayatlı <sevilaybaya...@gmail.com> del dia dj., 29 de
nov. 2018 a les 6:00:

> hi,
>
> In choose element , it may have one or more conditional options (<when>)
> and an alternative option <otherwise>,  If we have more than one "when",
> They are treated like if and else if , or just like if statements without
> else if.
>
> I said that because here in the Documentation of the Open-Source
> Shallow-Transfer Machine Translation Platform Apertium saying "The
> selection instruction consists of one or more conditional options (<when>)".
> But I didn't understand if it is sequence of if statements or if and else
> if statements
>
> Also for <begins-with> , <ends-with> , <contains-substring> , these
> elements have no explanation in the documentation?
>
> Thanks for your help in advance,
>
> Sevilay
>
>
>
> _______________________________________________
> Apertium-stuff mailing list
> Apertium-stuff@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to