# The logical expression in Choose \<\> logical expression for IF, Loop {until|while}

**URL:** <https://clarionhub.com/t/the-logical-expression-in-choose-logical-expression-for-if-loop-until-while/7630>\
**Category:** questions\
**Tags:** language\
**Created:** [October 31, 2024, 1:49pm UTC](https://clarionhub.com/t/the-logical-expression-in-choose-logical-expression-for-if-loop-until-while/7630 "2024-10-31T13:49:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RchdR](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@RchdR](https://clarionhub.com/u/RchdR)\
**Post date:** [October 31, 2024, 1:49pm UTC](https://clarionhub.com/t/the-logical-expression-in-choose-logical-expression-for-if-loop-until-while/7630/1 "2024-10-31T13:49:23Z")

</div>

Dont know if this is a help doc issue or not.

The Logical Expression (LE) in Choose(LE,true,false) doesnt work in the same way as If LE, Loop { until | while } LE.

You'll get different results.

The help page for 'logical expressions' only mentions If, loop { until | while } but not 'choose' so maybe thats a clue even though the help doc for choose returning true or false suggests the 'condition' is a logical expression!

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [October 31, 2024, 1:53pm UTC](https://clarionhub.com/t/the-logical-expression-in-choose-logical-expression-for-if-loop-until-while/7630/2 "2024-10-31T13:53:37Z")

</div>

If you just use

```clarion
CHOOSE(LE)

```

OR

```clarion
 CHOOSE(NOT LE,FALSE,TRUE)

```

Then you should get the result you expect.

With your rendition, it uses value of LE to select the values. e.g., If LE = 2, you will get FALSE.

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [October 31, 2024, 1:57pm UTC](https://clarionhub.com/t/the-logical-expression-in-choose-logical-expression-for-if-loop-until-while/7630/3 "2024-10-31T13:57:15Z")

</div>

e.g., you are passing an “expression” instead of a “condition” as described in the help.

---

<div class="post-metadata">

**Author:** ![RchdR](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@RchdR](https://clarionhub.com/u/RchdR)\
**Post date:** [October 31, 2024, 2:01pm UTC](https://clarionhub.com/t/the-logical-expression-in-choose-logical-expression-for-if-loop-until-while/7630/4 "2024-10-31T14:01:41Z")

</div>

> [@jslarve](#):
>
> With your rendition

Spookily confident there @jslarve !

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [October 31, 2024, 2:09pm UTC](https://clarionhub.com/t/the-logical-expression-in-choose-logical-expression-for-if-loop-until-while/7630/5 "2024-10-31T14:09:12Z")

</div>

You’re welcome, Richard.

---

<div class="post-metadata">

**Author:** ![RchdR](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@RchdR](https://clarionhub.com/u/RchdR)\
**Post date:** [October 31, 2024, 2:16pm UTC](https://clarionhub.com/t/the-logical-expression-in-choose-logical-expression-for-if-loop-until-while/7630/6 "2024-10-31T14:16:16Z")

</div>

Im sticking with the IF statements its less characters to type, and I can avoid any ambiguity from the use of Choose.
