From OpenSCADAWiki
Enter a message name below to show all available translations.
Found 3 translations.
Name | Current message text |
---|---|
h English (en) | === {{Anch|Examples|Examples of programs on this language}} === Here are some examples of programs on the Java-like language: <syntaxhighlight lang="JavaScript"> //Model of the course of the executive machinery of ball valve if(!(st_close && !com) && !(st_open && com)) { tmp_up = (pos>0&&pos<100) ? 0 : (tmp_up>0&&lst_com==com) ? tmp_up-1/frq : t_up; pos += (tmp_up>0) ? 0 : (100*(com?1:-1))/(t_full*frq); pos = (pos>100) ? 100 : (pos<0) ? 0 : pos; st_open = (pos>=100) ? true : false; st_close = (pos<=0) ? true : false; lst_com = com; } </syntaxhighlight> |
h Russian (ru) | === {{Anch|Examples|Примеры программы на этом языке}} === Приведём несколько примеров программ на Java-подобном языке: <syntaxhighlight lang="JavaScript"> //Модель хода исполнительного механизма шарового крана if(!(st_close && !com) && !(st_open && com)) { tmp_up = (pos>0&&pos<100) ? 0 : (tmp_up>0&&lst_com==com) ? tmp_up-1/frq : t_up; pos += (tmp_up>0) ? 0 : (100*(com?1:-1))/(t_full*frq); pos = (pos>100) ? 100 : (pos<0) ? 0 : pos; st_open = (pos>=100) ? true : false; st_close = (pos<=0) ? true : false; lst_com = com; } </syntaxhighlight> |
h Ukrainian (uk) | === {{Anch|Examples|Приклади програми на цій мові}} === Наведемо декілька прикладів програм на мові подібній до Java: <syntaxhighlight lang="JavaScript"> //Модель ходу виконавчого механізму кульового крану if(!(st_close && !com) && !(st_open && com)) { tmp_up = (pos>0&&pos<100) ? 0 : (tmp_up>0&&lst_com==com) ? tmp_up-1/frq : t_up; pos += (tmp_up>0) ? 0 : (100*(com?1:-1))/(t_full*frq); pos = (pos>100) ? 100 : (pos<0) ? 0 : pos; st_open = (pos>=100) ? true : false; st_close = (pos<=0) ? true : false; lst_com = com; } </syntaxhighlight> |