<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Is using 'if' and 'when' confusing? should be not standardise over it?<br>
<br>
I think "when" is used as you say "when this then that" not "when this
maybe this or maybe that else that", where as if/else is a common usage
- so helps emphasis that rules are more atomic.<br>
<br>
With Edson's work is this not all localisable now anyway? If so, need
to make sure that the guided editors obey his keyword localisation work.<br>
<br>
Mark<br>
Michael Neale wrote:
<blockquote
 cite="mid:96ab3ced0702260355g5dd74b58sa3b33b88bd1a8403@mail.gmail.com"
 type="cite">no, it was just to be different. It can be anything. It
can be <br>
  <br>
"wassup" or something ;)<br>
  <br>
Not sure if that explanation has any real meaning, I mean it makes a
point, but "when" actually implies to me that it is slightly temporal
(ie "when" means it will happen, at some point in time, where as "if"
means it may or may not happen - neither of which are
procedural/imperative). <br>
  <br>
I think its ok to say IF, as people still say "if/then" for production
rules, its not really confusing - perhaps we need another way to
explain imperative versus declarative. <br>
  <br>
  <div><span class="gmail_quote">On 2/26/07, <b
 class="gmail_sendername">Mark Proctor</b> &lt;<a moz-do-not-send="true"
 href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt;
wrote:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">I noticed that 'if' is used
in the guided editor instead of 'when',
whats the reason for this? As currently I explain the use of 'when'
because it indicates its not procedular, where as 'if' is considered
part of a procedural logic flow. Will this confuse that explanation?<br>
    <br>
    <img alt="'if' screen shot"
 src="cid:part1.09070701.00030407@codehaus.org" height="479" width="514"><br>
    <br>
Mark<br>
    </div>
    <br>
_______________________________________________<br>
rules-dev mailing list<br>
    <a moz-do-not-send="true"
 onclick="return top.js.OpenExtLink(window,event,this)"
 href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
    <a moz-do-not-send="true"
 onclick="return top.js.OpenExtLink(window,event,this)"
 href="https://lists.jboss.org/mailman/listinfo/rules-dev"
 target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
    <br>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
  </pre>
</blockquote>
<br>
</body>
</html>