^1651632417875
@
sname
If
slabel
If
sdescriptors
xworker.lang.MetaDescriptor3
sextends
xworker.lang.actions.SelfAction
smany
true
seditCols
2
sformNoLabel
false
sinitialization
false
smodifier
public
sinheritDescription
false
scolor
BLUE
Sdescription
#$@text#$@
<p>条件动作。</p>

<p><strong>IF的示意代码下：</strong></p>

<pre class="brush:java;">
if(UtilData.isTrue(self.doAction(&quot;condition&quot;, actionContext))){
    self.doAction(&quot;then&quot;, actionContext);
}else{
    self.doAction(&quot;else&quot;, actionContext);
}</pre>

<p>&nbsp;&nbsp;&nbsp; 其中condition、then和esle是If的动作名。</p>

<p><strong>变量范围</strong></p>

<p>&nbsp;&nbsp;&nbsp; IF将会启动一个局部变量范围，不管是条件还是Then或Else都在一个变量范围下。</p>

<p>&nbsp;</p>
#$@text#$@
snotXmlAttribute
false
sjson_isArray
false
sth_version
2
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_fileMonitor
false
sth_deprecated
false
sth_mark
false
  @/@scripts
  sname
  actions
  slabel
  scripts
  sdescriptors
  xworker.lang.MetaDescriptor3/@actions
  sid
  scripts
    @/@scripts/@run
    sname
    run
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.lang.actions.IfCreator
    sclassName
    If
    smethodName
    run
    sdisableGlobalContext
    false
    sdescriptors
    xworker.lang.actions.JavaAction
    sid
    run
    @/@scripts/@condition
    sname
    condition
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    suseInnerJava
    false
    souterClassName
    xworker.lang.actions.IfCreator
    smethodName
    condition
    sdisableGlobalContext
    false
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    condition
  @/@name
  sname
  name
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  name
  @/@label
  sname
  label
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  label
  @/@Else
  sname
  Else
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.actions.Actions
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  private
  sinheritDescription
  false
  sdescription
  <p>Deprecated</p>
  snotXmlAttribute
  false
  sjson_isArray
  false
  sid
  Else
    @/@Else/@name
    sname
    name
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    name
    @/@Else/@label
    sname
    label
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    label
  @/@condition
  sname
  condition
  sinputtype
  textarea
  sshowLabel
  true
  slabelAlign
  right
  slabelVAlign
  baseline
  smodifier
  private
  sreadOnly
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>Deprecated</p>

<p>如果不为空那么当做Ognl解析执行，如果返回true，那么该条件成立。</p>

<p>如果为空，还可以通过增加这个事物的condition方法作为条件判断。</p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_mark
  false
  sid
  condition
  @/@description
  sname
  description
  sinputtype
  html
  scolspan
  2
  sinputattrs
  Width='480';Height='300';ToolbarSet="SwtEdit"
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  description
  @/@ChildAction
  sname
  Then
  slabel
  Then
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.actions.Actions
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  private
  sinheritDescription
  false
  sdescription
  <p>Deprecated</p>
  snotXmlAttribute
  false
  sjson_isArray
  false
  sth_createIndex
  false
  sid
  ChildAction
    @/@ChildAction/@name
    sname
    name
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    name
    @/@ChildAction/@label
    sname
    label
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    label
  @/@actions
  sname
  actions
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.actions.Actions
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  private
  sinheritDescription
  false
  sdescription
  <p>Deprecated</p>
  snotXmlAttribute
  false
  sjson_isArray
  false
  sth_createIndex
  false
  sid
  actions
