# Condition in robot framework (appium) on android

**URL:** <https://forum.robotframework.org/t/condition-in-robot-framework-appium-on-android/4818>\
**Category:** Appium\
**Created:** [14 October 2022 03:49 UTC](https://forum.robotframework.org/t/condition-in-robot-framework-appium-on-android/4818 "2022-10-14T03:49:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wee](https://avatars.discourse-cdn.com/v4/letter/w/dec6dc/32.png) [@Wee](https://forum.robotframework.org/u/Wee)\
**Post date:** [14 October 2022 03:49 UTC](https://forum.robotframework.org/t/condition-in-robot-framework-appium-on-android/4818/1 "2022-10-14T03:49:18Z")

</div>

I tried to set condition in robot framework (appium) why they don’t know what the different spot  
${stock}= Get Text id=com.seniorsoft.Gabana3:id/switchStock  
#just Text and Checked to notice they are different I also did  
${stock}= Element Should Be Disabled id=com.seniorsoft.Gabana3:id/switchStock  
${stock}= Element Should Be Enabled id=com.seniorsoft.Gabana3:id/switchStock  
Run Keyword If ‘${stock}’ == ‘OFF’ stock on hand to open  
… ELSE stock on hand to add minimum  
or  
${stock}= id=com.seniorsoft.Gabana3:id/switchStock checked  
Run Keyword If ‘${stock}’ == ‘false’ stock on hand to open  
… ELSE stock on hand to add minimum  
So they did not work  
Help me, please
