# how to change expression return type  - defaults to string and cant change it

**URL:** <https://community.ofelia.com/t/how-to-change-expression-return-type-defaults-to-string-and-cant-change-it/6254>\
**Category:** Q&A\
**Created:** [5 August 2015 19:15 UTC](https://community.ofelia.com/t/how-to-change-expression-return-type-defaults-to-string-and-cant-change-it/6254 "2015-08-05T19:15:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaykay](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kaykay](https://community.ofelia.com/u/kaykay)\
**Post date:** [5 August 2015 19:15 UTC](https://community.ofelia.com/t/how-to-change-expression-return-type-defaults-to-string-and-cant-change-it/6254/1 "2015-08-05T19:15:23Z")

</div>

Please see the screen shots below. I went nuts over on how to change the return type to boolean from string

![iamge1](http://www.tiikoni.com/tis/view/?id=b41505d)

![2](http://www.tiikoni.com/tis/view/?id=f5ff78f)

![3](http://www.tiikoni.com/tis/view/?id=ae2dd76)

[http://www.tiikoni.com/tis/view/?id=b41505d](http://www.tiikoni.com/tis/view/?id=b41505d)  
[http://www.tiikoni.com/tis/view/?id=f5ff78f](http://www.tiikoni.com/tis/view/?id=f5ff78f)  
[http://www.tiikoni.com/tis/view/?id=ae2dd76](http://www.tiikoni.com/tis/view/?id=ae2dd76)

---

<div class="post-metadata">

**Author:** ![yannick.lombardi](https://avatars.discourse-cdn.com/v4/letter/y/8e8cbc/32.png) [@yannick.lombardi](https://community.ofelia.com/u/yannick.lombardi)\
**Post date:** [6 August 2015 07:03 UTC](https://community.ofelia.com/t/how-to-change-expression-return-type-defaults-to-string-and-cant-change-it/6254/2 "2015-08-06T07:03:21Z")

</div>

You can’t.  
A condition is an expression that is True or False. This kind of value is a Boolean. So you can only have an expression that return a boolean.

For example you can stop the loop if a variable is egal to a certain value (myStringVariable.egals(“AStringValue”)).

EDIT : I’m not awake … I didn’t see that it is the opposite problem …  
I think it’s a bug. Try to delete your task and recreate it. For me it is Boolean by default.

What version did you use ?

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [6 August 2015 07:11 UTC](https://community.ofelia.com/t/how-to-change-expression-return-type-defaults-to-string-and-cant-change-it/6254/3 "2015-08-06T07:11:14Z")

</div>

Yeah but what have you done - according to the screen shots everything is blank?

Where are you expecting the Boolean?

regards

---

<div class="post-metadata">

**Author:** ![kaykay](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kaykay](https://community.ofelia.com/u/kaykay)\
**Post date:** [6 August 2015 12:40 UTC](https://community.ofelia.com/t/how-to-change-expression-return-type-defaults-to-string-and-cant-change-it/6254/4 "2015-08-06T12:40:54Z")

</div>

there’s a bug in the tool. You cant change the default value. But I had to ‘play/trick’ with it to return a variable of value boolean. then it defaults to boolean. then go back to my script. now, it has boolean as default instead of string and again its greyed out. but i dont care. i wrote my script. but its a mess to figure that out. hopefully someone can benefit from my post. version 6.5. downloaded 7 to see if its fixed and the answer is NO

[http://www.tiikoni.com/tis/view/?id=5d14a58](http://www.tiikoni.com/tis/view/?id=5d14a58)

![finally][finally]   
[finally]: [http://www.tiikoni.com/tis/view/?id=5d14a58](http://www.tiikoni.com/tis/view/?id=5d14a58)
