# Keyword: Should Not Be Lower As Number

**URL:** <https://forum.robotframework.org/t/keyword-should-not-be-lower-as-number/3261>\
**Category:** Robot Framework\
**Created:** [14 February 2022 12:09 UTC](https://forum.robotframework.org/t/keyword-should-not-be-lower-as-number/3261 "2022-02-14T12:09:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![valentijnpeters](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/valentijnpeters/32/828_2.png) [@valentijnpeters](https://forum.robotframework.org/u/valentijnpeters)\
**Post date:** [14 February 2022 12:09 UTC](https://forum.robotframework.org/t/keyword-should-not-be-lower-as-number/3261/1 "2022-02-14T12:09:08Z")

</div>

please create the two following Keywords:

(I leave all the mega bla bla behind why regex does not work)

**Should Not Be Lower As Number**  
**Should Not Be Higher As Number**

preferably both in Browser Library  
as  
SeleniumLibrary.

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [14 February 2022 12:24 UTC](https://forum.robotframework.org/t/keyword-should-not-be-lower-as-number/3261/2 "2022-02-14T12:24:58Z")

</div>

Is this a request?

---

<div class="post-metadata">

**Author:** ![robinmackaij](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/robinmackaij/32/126_2.png) [@robinmackaij](https://forum.robotframework.org/u/robinmackaij)\
**Post date:** [14 February 2022 12:43 UTC](https://forum.robotframework.org/t/keyword-should-not-be-lower-as-number/3261/3 "2022-02-14T12:43:30Z")

</div>

You can easily implement these keywords in a custom library. See for example  
[How to write and use custom Robot Framework Python RPA libraries (robocorp.com)](https://robocorp.com/docs/development-guide/robot-framework/how-to-use-custom-python-libraries-in-your-robots)

---

<div class="post-metadata">

**Author:** ![aaltat](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/aaltat/32/15_2.png) [@aaltat](https://forum.robotframework.org/u/aaltat)\
**Post date:** [14 February 2022 16:27 UTC](https://forum.robotframework.org/t/keyword-should-not-be-lower-as-number/3261/4 "2022-02-14T16:27:22Z")

</div>

Browser library with assertion already support this.

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [15 February 2022 00:21 UTC](https://forum.robotframework.org/t/keyword-should-not-be-lower-as-number/3261/5 "2022-02-15T00:21:40Z")

</div>

Hi @valentijnpeters

The Built-In library has [Should Be True](http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Should%20Be%20True)

```python
	${mymum}= Set Variable 13
	Should Be True ${mymum}>10	# Should Not Be Lower As Number
	Should Be True ${mymum}<20	# Should Not Be Higher As Number

```

Does that not do what you needed?

---

<div class="post-metadata">

**Author:** ![valentijnpeters](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/valentijnpeters/32/828_2.png) [@valentijnpeters](https://forum.robotframework.org/u/valentijnpeters)\
**Post date:** [15 February 2022 09:57 UTC](https://forum.robotframework.org/t/keyword-should-not-be-lower-as-number/3261/6 "2022-02-15T09:57:58Z")

</div>

Very helpfull all! thanks x100. cool.
