#
msgid ""
msgstr ""
"Project-Id-Version: Modelica by Example 0.2.1\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2014-10-03 22:20+0100\n"
"Last-Translator: Dongping Xie <dongping.xie.tud@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../../source/behavior/discrete/if.rst:4
msgid "If"
msgstr "If语句及if表达式"

#: ../../source/behavior/discrete/if.rst:8
msgid ""
"Although it is pretty intuitive, it is worth having a short review of the "
"syntax for ``if`` statements and ``if`` expressions.  Let's start with "
"``if`` expressions because they are the simplest to explain.  An ``if`` "
"expression has the form:"
msgstr ""
"虽然其十分直观的，但我们仍然值得简短介绍一下\\ ``if``\\ 语句以及\\ ``if``\\ 表达式的语法。\ "
"因为\\ ``if``\\ "
"表达式解释起来最简单，所以让我们先从它开始介绍。\ "
"\\ ``if``\\ 表达式有以下形式："

#: ../../source/behavior/discrete/if.rst:17
msgid ""
"where ``cexpr`` is a conditional expression (that will evaluate to a "
"``Boolean`` value), ``expr1`` is the value the expression will have if "
"``cexpr`` evaluates to ``true`` and ``expr2`` is the value the expression "
"will have if ``cexpr`` evaluates to ``false``."
msgstr ""
"其中\\ ``cexpr``\\ 是条件表达式（其结果是一个\\ ``Boolean``\\ 值。\ "
"）。\ "
"\\ ``expr1``\\ 则是\\ "
"``if``\\ 表达式在\\ ``cexpr``\\ 结果为\\ ``true``\\ 的取值。\ "
"相对地，\\ ``expr2``\\ 则是\\ "
"``if``\\ 表达式在\\ ``cexpr``\\ 结果为\\ ``false``\\ 的取值。\ "

#: ../../source/behavior/discrete/if.rst:22
msgid "An ``if`` statement has the general syntax:"
msgstr "\\ ``if``\\ 语句有如下的一般语法："

#: ../../source/behavior/discrete/if.rst:38
msgid ""
"It is important to note that when an ``if`` statement appears in an "
"``equation`` section, the number of equations must be the same regardless of"
" which branch through the ``if`` statement is taken (this applies in the "
"presence of ``elseif`` as well).  One exception is the use of ``if`` within "
"an ``initial equation`` or ``initial algorithm`` section where an ``else`` "
"clause is not required since the number of equations doesn't have to be same"
" for both branches.  Another notable exception is the use of ``if`` within "
":ref:`functions` where, again, there is not requirement that the number of "
"equations be the same across both branches."
msgstr ""
"重要的是要注意，当一个\\ ``if``\\ 语句出现在\\ ``equation``\\ 区域里，无论在\\ ``if``\\ "
"语句的哪个分支里（对于有\\ ``elseif``\\ 的情况也适用），方程的数量均必须一致。\ "
"一个例外是在\\ ``initial "
"equation``\\ 或\\ ``initial algorithm``\\ 内的\\ ``if``\\ 乃至不需要\\ ``else``\\ "
"子句。\ "
"因为在这些情况下，分支内的方程数量不需要相等。\ "
"另外一个值得注意的例外是，在\\ :ref:`functions`\\ 内使用的\\ "
"``if``\\ 同样也没有要求方程的数目是在两个分支上相同"

#: ../../source/behavior/discrete/if.rst:51
msgid ""
"Note that conditional expressions within both ``if`` statements and ``if`` "
"expressions have the potential to generate :ref:`events`."
msgstr "请注意，\\ ``if``\\ 语句以及\\ ``if``\\ 表达式内的条件表达式有可能会产生\\ :ref:`events`\\ 。\ "
