Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Element #3

Open
ghost opened this issue Nov 1, 2017 · 0 comments
Open

Switch Element #3

ghost opened this issue Nov 1, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 1, 2017

Add the Switch element to the language.

Now, it is like this:
The count variable is just to demonstrate the use of various conditions in the case

context c1
   switchPort spAudio audioEn.trechoEn audioPt.trechoPt
   case system.language == "en" and count < 0: audioEn
   case system.language == "pt" and count > 0: audioPt

   default: audioPt

   -- Media audioPt com Area trechoPt e Media audioEn com Area trechoEn
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants