# \#if-condition

**URL:** https://forum.uipath.com/tag/if-condition/2108.md

[En son](https://forum.uipath.com/latest.md) · [Kategoriler](https://forum.uipath.com/categories.md) · [Etiketler](https://forum.uipath.com/tags.md)

---

## [Dikey IF faydalı bir çözüm değil. Lütfen yatay bir yaklaşımı etkinleştirin](https://forum.uipath.com/t/vertical-if-is-not-a-helpful-solution-please-enable-a-horizontal-approach/2874223)

<div class="topic-metadata">

**Author:** [@Vinncent\_0](https://forum.uipath.com/u/Vinncent_0)\
**Yanıtlar:** 2\
**Son güncelleme:** [Temmuz 3, 2025, 9:41öö UTC](https://forum.uipath.com/t/vertical-if-is-not-a-helpful-solution-please-enable-a-horizontal-approach/2874223 "2025-07-03T09:41:54Z")

</div>

Sayın UiPath ekibi Bu konu birkaç kez gündeme getirildi, ancak görmezden geliyorsunuz. Dikey bir formda ‘If’ etkinliğinin kullanılmasını zorunlu kılmak çok kötü bir fikir ve iş akışının okunabilirliğini büyük ölçüde azaltıyor. Belirtmeye değer…

---

## [If aktivitesinde hata: 'VisualBasicValue\`1' ifade etkinlik türünün çalıştırılabilmesi için derlenmesi gerekiyor. İş akışının derlendiğinden emin olun.](https://forum.uipath.com/t/if-expression-activity-type-visualbasicvalue-1-requires-compilation-in-order-to-run-please-ensure-that-the-workflow-has-been-compiled-error-in-if-activity/2794545)

<div class="topic-metadata">

**Author:** [@Mathkar\_kunal](https://forum.uipath.com/u/Mathkar_kunal)\
**Yanıtlar:** 2\
**Son güncelleme:** [Nisan 21, 2025, 12:15ös UTC](https://forum.uipath.com/t/if-expression-activity-type-visualbasicvalue-1-requires-compilation-in-order-to-run-please-ensure-that-the-workflow-has-been-compiled-error-in-if-activity/2794545 "2025-04-21T12:15:21Z")

</div>

Merhaba, UiPath'te aniden bu sorunla karşılaşıyorum. “If: VisualBasicValue\`1 ifade etkinliğinin çalıştırılabilmesi için derlenmesi gerekiyor. Lütfen iş akışının derlendiğinden emin olun.” İki sütunu karşılaştırıyorum…

---

## [IF Condition Help](https://forum.uipath.com/t/if-condition-help/2763566)

<div class="topic-metadata">

**Author:** [@ozgur.yukcan](https://forum.uipath.com/u/ozgur.yukcan)\
**Yanıtlar:** 5\
**Son güncelleme:** [Mart 24, 2025, 2:37öö UTC](https://forum.uipath.com/t/if-condition-help/2763566 "2025-03-24T02:37:55Z")

</div>

Hi Friends, I get the following error in the if activity. How can I solve it? I want to print 202502 while in period 202503. When in period 202501 it should say 202412. Thank you for your support and cooperation. …

---

## [How to save specific row values in variable](https://forum.uipath.com/t/how-to-save-specific-row-values-in-variable/783953)

<div class="topic-metadata">

**Author:** [@Mathkar\_kunal](https://forum.uipath.com/u/Mathkar_kunal)\
**Yanıtlar:** 3\
**Son güncelleme:** [Aralık 5, 2024, 11:36öö UTC](https://forum.uipath.com/t/how-to-save-specific-row-values-in-variable/783953 "2024-12-05T11:36:06Z")

</div>

Hello, i have below table i need output in single variable like below tabc,kmard i need like those user values like above where user column cell is not red and SNCF column contains value “yes” help me on same

---

## [How to add switch case with Dynamic input strings](https://forum.uipath.com/t/how-to-add-switch-case-with-dynamic-input-strings/752738)

<div class="topic-metadata">

**Author:** [@Shruthika\_r](https://forum.uipath.com/u/Shruthika_r)\
**Yanıtlar:** 12\
**Son güncelleme:** [Temmuz 10, 2024, 10:46öö UTC](https://forum.uipath.com/t/how-to-add-switch-case-with-dynamic-input-strings/752738 "2024-07-10T10:46:39Z")

</div>

Hi Community, I am ne RPA dev, need help1 I have data in notepad, and I need to check if that data contains some strings, if it’s it is 1 or 2 I can use if else but there are many such strings I need to check 1 by 1 S…

---

## [Transaction item(Queue item) Contains Specific string](https://forum.uipath.com/t/transaction-item-queue-item-contains-specific-string/735349)

<div class="topic-metadata">

**Author:** [@Yugal\_Raju](https://forum.uipath.com/u/Yugal_Raju)\
**Yanıtlar:** 5\
**Son güncelleme:** [Nisan 18, 2024, 9:11öö UTC](https://forum.uipath.com/t/transaction-item-queue-item-contains-specific-string/735349 "2024-04-18T09:11:28Z")

</div>

Hello all, I am adding the following datatable into a queue I want to write a condition in which only Transactionitem(“Invoices”) that has “SCC” should be considered. E.G : - 1SCC123468 Thank you for your help.

---

## [Want to Retry putting the code 2nd time Using If condition Login - for efficiency](https://forum.uipath.com/t/want-to-retry-putting-the-code-2nd-time-using-if-condition-login-for-efficiency/727048)

<div class="topic-metadata">

**Author:** [@samantha\_shah](https://forum.uipath.com/u/samantha_shah)\
**Yanıtlar:** 11\
**Son güncelleme:** [Mart 15, 2024, 3:36ös UTC](https://forum.uipath.com/t/want-to-retry-putting-the-code-2nd-time-using-if-condition-login-for-efficiency/727048 "2024-03-15T15:36:12Z")

</div>

How can I make the process more Efficient ?? I am trying to login into a carrier portal using Login. the process works fine. my process looks like: Homepage appears - \> Click Login → enter Username password Get crede…

---

## [If condition : either datatable is null](https://forum.uipath.com/t/if-condition-either-datatable-is-null/725963)

<div class="topic-metadata">

**Author:** [@Yugal\_Raju](https://forum.uipath.com/u/Yugal_Raju)\
**Yanıtlar:** 8\
**Son güncelleme:** [Mart 12, 2024, 4:06ös UTC](https://forum.uipath.com/t/if-condition-either-datatable-is-null/725963 "2024-03-12T16:06:46Z")

</div>

Hello all, I have a question on how to give if in which if Either datatables ( DT1 , DT2) is null it should go into the THEN workflow i.e if DT1 is null or DT2 is null or both DT1 and DT2 are null it should go onto th…

---

## [If condition better approach](https://forum.uipath.com/t/if-condition-better-approach/724610)

<div class="topic-metadata">

**Author:** [@samantha\_shah](https://forum.uipath.com/u/samantha_shah)\
**Yanıtlar:** 13\
**Son güncelleme:** [Mart 6, 2024, 6:23öö UTC](https://forum.uipath.com/t/if-condition-better-approach/724610 "2024-03-06T06:23:30Z")

</div>

Hi I have a sequence where have a counter variable declared =0 success = 0 failure = 0 my flow -\>Try block (read range → for each → then 2 if conditions) catch block empty i have two if conditions : one to check s…

---

## [Searching/detecting values \> 0 in a data table - Boolean condition](https://forum.uipath.com/t/searching-detecting-values-0-in-a-data-table-boolean-condition/710284)

<div class="topic-metadata">

**Author:** [@ljones](https://forum.uipath.com/u/ljones)\
**Yanıtlar:** 5\
**Son güncelleme:** [Ocak 4, 2024, 10:15öö UTC](https://forum.uipath.com/t/searching-detecting-values-0-in-a-data-table-boolean-condition/710284 "2024-01-04T10:15:05Z")

</div>

I want to verify all cells in a data table are values \> 0. Another way of approaching it is to be able to search the data table for “0.0”. I don’t care where the value is or how many times it occurs. I just need to know…

---

## [How to verify contents of each cell in data table - Boolean expression / If activity](https://forum.uipath.com/t/how-to-verify-contents-of-each-cell-in-data-table-boolean-expression-if-activity/707004)

<div class="topic-metadata">

**Author:** [@ljones](https://forum.uipath.com/u/ljones)\
**Yanıtlar:** 5\
**Son güncelleme:** [Ocak 3, 2024, 10:33öö UTC](https://forum.uipath.com/t/how-to-verify-contents-of-each-cell-in-data-table-boolean-expression-if-activity/707004 "2024-01-03T10:33:13Z")

</div>

For data table A I want to verify that all cells in the data table contain a value \> 0. i.e. if the table has a value =\< 0 the flow will go to ‘Else’ For data table B I want to verify all cells contain a certain phrase/…

---

## [If statement issue - condition not being met](https://forum.uipath.com/t/if-statement-issue-condition-not-being-met/706468)

<div class="topic-metadata">

**Author:** [@duaine.b](https://forum.uipath.com/u/duaine.b)\
**Yanıtlar:** 1\
**Son güncelleme:** [Aralık 14, 2023, 12:18ös UTC](https://forum.uipath.com/t/if-statement-issue-condition-not-being-met/706468 "2023-12-14T12:18:13Z")

</div>

I have an if activity in UiPath and the condition is if isNoResultsExists or is0resultsmatchexists and in\_strtradertype = “non-legalentity” The value of isNoResultsExists is true The value of is0resultsmatchexists fals…

---

## [If DataTable is empty](https://forum.uipath.com/t/if-datatable-is-empty/705205)

<div class="topic-metadata">

**Author:** [@jenn.cruz](https://forum.uipath.com/u/jenn.cruz)\
**Yanıtlar:** 9\
**Son güncelleme:** [Aralık 11, 2023, 3:29öö UTC](https://forum.uipath.com/t/if-datatable-is-empty/705205 "2023-12-11T03:29:31Z")

</div>

Hello, I am pulling data from another spreadsheet and pasting it. I need to accommodate for the off chance that there is no data. My thought was to use the if activity. If there aren’t any rows with data, skip to the ne…

---

## [Addressing Multi-Sector Identification Challenges in Web Scraping Workflows](https://forum.uipath.com/t/addressing-multi-sector-identification-challenges-in-web-scraping-workflows/671370)

<div class="topic-metadata">

**Author:** [@Carla\_Munoz](https://forum.uipath.com/u/Carla_Munoz)\
**Yanıtlar:** 9\
**Son güncelleme:** [Ekim 31, 2023, 1:02ös UTC](https://forum.uipath.com/t/addressing-multi-sector-identification-challenges-in-web-scraping-workflows/671370 "2023-10-31T13:02:19Z")

</div>

Hello, I am creating a workflow in which I use an ‘If’ condition to check if the ‘Economic Sector’ is equal to any of the sectors stored in an array of strings. If it is equal, the program is executed; otherwise, it chec…

---

## [Skip error when using Use Excel File activy](https://forum.uipath.com/t/skip-error-when-using-use-excel-file-activy/664728)

<div class="topic-metadata">

**Author:** [@Ricchch](https://forum.uipath.com/u/Ricchch)\
**Yanıtlar:** 8\
**Son güncelleme:** [Ekim 30, 2023, 6:57ös UTC](https://forum.uipath.com/t/skip-error-when-using-use-excel-file-activy/664728 "2023-10-30T18:57:55Z")

</div>

Hello friend, i would really appreciated if you could help me with this problem. I want to program a series of instructions to be made for several excel files saved inside a network. I want my bot to go through all di…

---

## [Linq for datatable and if conditions](https://forum.uipath.com/t/linq-for-datatable-and-if-conditions/606747)

<div class="topic-metadata">

**Author:** [@Tanmay\_V\_Chetule](https://forum.uipath.com/u/Tanmay_V_Chetule)\
**Yanıtlar:** 2\
**Son güncelleme:** [Eylül 25, 2023, 6:15ös UTC](https://forum.uipath.com/t/linq-for-datatable-and-if-conditions/606747 "2023-09-25T18:15:16Z")

</div>

Is there any way to use Linq here? Please mention the queries. Thanks in advance

---

## [Ui Path - If statement not working](https://forum.uipath.com/t/ui-path-if-statement-not-working/556903)

<div class="topic-metadata">

**Author:** [@Lucio\_Roque](https://forum.uipath.com/u/Lucio_Roque)\
**Yanıtlar:** 7\
**Son güncelleme:** [Haziran 23, 2023, 1:36ös UTC](https://forum.uipath.com/t/ui-path-if-statement-not-working/556903 "2023-06-23T13:36:57Z")

</div>

Hi guys, I’m knew to UI Path. I’ve created a robot that goes to SAP extracts information and then saves it to a .xlsx file. If created an if statement if it finds it finds an element: if it finds the element it clicks …

---

## [Help with code](https://forum.uipath.com/t/help-with-code/545078)

<div class="topic-metadata">

**Author:** [@Ricchch](https://forum.uipath.com/u/Ricchch)\
**Yanıtlar:** 9\
**Son güncelleme:** [Mayıs 17, 2023, 3:13ös UTC](https://forum.uipath.com/t/help-with-code/545078 "2023-05-17T15:13:03Z")

</div>

Hello wonderfull people, Please i need a help regarding this problem: i have a case where i need to filter some emails having excel attachments and save them. But just the attachement whose names are (“MMM” or “SSS”). …

---

## [How to use IF activity to compare 2 date time values?](https://forum.uipath.com/t/how-to-use-if-activity-to-compare-2-date-time-values/541084)

<div class="topic-metadata">

**Author:** [@J\_Ja](https://forum.uipath.com/u/J_Ja)\
**Yanıtlar:** 1\
**Son güncelleme:** [Mayıs 2, 2023, 8:49ös UTC](https://forum.uipath.com/t/how-to-use-if-activity-to-compare-2-date-time-values/541084 "2023-05-02T20:49:44Z")

</div>

Hi all..I have a If activity and i want to use a variable that says if current date time is lower than 12pm do something, but if it’s equal or over does something else. I’m have not being able to create this date type v…

---

## [Condition - find/match data row-wise from excel](https://forum.uipath.com/t/condition-find-match-data-row-wise-from-excel/538263)

<div class="topic-metadata">

**Author:** [@Yugal\_Raju](https://forum.uipath.com/u/Yugal_Raju)\
**Yanıtlar:** 3\
**Son güncelleme:** [Nisan 23, 2023, 1:48ös UTC](https://forum.uipath.com/t/condition-find-match-data-row-wise-from-excel/538263 "2023-04-23T13:48:43Z")

</div>

Hello all, I have a data in excel with date-wise: I want to write the if condition: if current date is equal to the date value in the row i have to fill data in that column. example : 4/23/2023 equals row (“4/23/2…

---

## [Revolutionizing UiPath Automation: 5 Complex Decisions Where ChatGPT Outperforms Humans in the Loop](https://forum.uipath.com/t/revolutionizing-uipath-automation-5-complex-decisions-where-chatgpt-outperforms-humans-in-the-loop/526922)

<div class="topic-metadata">

**Author:** [@Cristian\_Negulescu](https://forum.uipath.com/u/Cristian_Negulescu)\
**Yanıtlar:** 1\
**Son güncelleme:** [Mart 17, 2023, 9:04öö UTC](https://forum.uipath.com/t/revolutionizing-uipath-automation-5-complex-decisions-where-chatgpt-outperforms-humans-in-the-loop/526922 "2023-03-17T09:04:20Z")

</div>

Revolutionizing UiPath Automation: 5 Complex Decisions Where ChatGPT Outperforms Humans in the Loop 0:50 ChatGPT has the ability to assign a numerical score ranging from 1 to 10 to any given text 2:45 Per…

---

## [If condition always comes as false](https://forum.uipath.com/t/if-condition-always-comes-as-false/515716)

<div class="topic-metadata">

**Author:** [@DimiG](https://forum.uipath.com/u/DimiG)\
**Yanıtlar:** 17\
**Son güncelleme:** [Şubat 10, 2023, 12:08ös UTC](https://forum.uipath.com/t/if-condition-always-comes-as-false/515716 "2023-02-10T12:08:10Z")

</div>

Hello everyone, I am trying to make check if files exist in a folder.If yes continue with the task else display a message.For some reason it goes straight to the Else statement and prints the message.There are files in …

---

## [IF Condition to trigger workflow on "MONDAYS"](https://forum.uipath.com/t/if-condition-to-trigger-workflow-on-mondays/506802)

<div class="topic-metadata">

**Author:** [@Yugal\_Raju](https://forum.uipath.com/u/Yugal_Raju)\
**Yanıtlar:** 4\
**Son güncelleme:** [Ocak 12, 2023, 4:08öö UTC](https://forum.uipath.com/t/if-condition-to-trigger-workflow-on-mondays/506802 "2023-01-12T04:08:00Z")

</div>

Hello All, I would like to know the IF condition to trigger a sequence only on Mondays of every week. Thanking you

---

## [Scrape custom web data and email to each users in excel](https://forum.uipath.com/t/scrape-custom-web-data-and-email-to-each-users-in-excel/498503)

<div class="topic-metadata">

**Author:** [@brt](https://forum.uipath.com/u/brt)\
**Yanıtlar:** 1\
**Son güncelleme:** [Aralık 13, 2022, 3:20öö UTC](https://forum.uipath.com/t/scrape-custom-web-data-and-email-to-each-users-in-excel/498503 "2022-12-13T03:20:38Z")

</div>

Hi, I currently have 2 excel file, where the first file stores the genre and types of books that a book store would like to market, while the other file contains customer information such as their email and book interes…

---

## [Problems with IF Conditions;](https://forum.uipath.com/t/problems-with-if-conditions/486974)

<div class="topic-metadata">

**Author:** [@g.vanderlei](https://forum.uipath.com/u/g.vanderlei)\
**Yanıtlar:** 2\
**Son güncelleme:** [Kasım 3, 2022, 2:20ös UTC](https://forum.uipath.com/t/problems-with-if-conditions/486974 "2022-11-03T14:20:12Z")

</div>

hello guys, So, im creating an automation to get all the numbers that are inside a range of two cells on excel, but when the second cell is blank, the value in the first cell have to complete the second one. Im trying t…

---

## [If else condition is not working](https://forum.uipath.com/t/if-else-condition-is-not-working/415140)

<div class="topic-metadata">

**Author:** [@prashant1603765](https://forum.uipath.com/u/prashant1603765)\
**Yanıtlar:** 6\
**Son güncelleme:** [Eylül 6, 2022, 9:23öö UTC](https://forum.uipath.com/t/if-else-condition-is-not-working/415140 "2022-09-06T09:23:19Z")

</div>

If else condition is not working only else part is print .Can anyone help me?

---

## [Hi my requirement is file status is running or not running picup the file name](https://forum.uipath.com/t/hi-my-requirement-is-file-status-is-running-or-not-running-picup-the-file-name/469552)

<div class="topic-metadata">

**Author:** [@Vishnu\_Reddy1](https://forum.uipath.com/u/Vishnu_Reddy1)\
**Yanıtlar:** 7\
**Son güncelleme:** [Eylül 1, 2022, 10:48öö UTC](https://forum.uipath.com/t/hi-my-requirement-is-file-status-is-running-or-not-running-picup-the-file-name/469552 "2022-09-01T10:48:11Z")

</div>

My requirement is file status is “running or not running” pic the file name .. status is N/A not picup the file name … Please help me.

---

## [Get text and if statement](https://forum.uipath.com/t/get-text-and-if-statement/468192)

<div class="topic-metadata">

**Author:** [@RACHEL\_PAUL](https://forum.uipath.com/u/RACHEL_PAUL)\
**Yanıtlar:** 4\
**Son güncelleme:** [Ağustos 26, 2022, 7:46öö UTC](https://forum.uipath.com/t/get-text-and-if-statement/468192 "2022-08-26T07:46:05Z")

</div>

Hi. I need to extract a text which has a value from a web page. Example the text is Category. Category contains a different single value every time like 1, 2 ,3… I need to capture that text and if the Category equals …

---

## [Excel, if condition](https://forum.uipath.com/t/excel-if-condition/464396)

<div class="topic-metadata">

**Author:** [@RACHEL\_PAUL](https://forum.uipath.com/u/RACHEL_PAUL)\
**Yanıtlar:** 3\
**Son güncelleme:** [Ağustos 11, 2022, 12:15ös UTC](https://forum.uipath.com/t/excel-if-condition/464396 "2022-08-11T12:15:19Z")

</div>

In the excel sheet suppose the cell A1= “Yes” and cell A2= “Yes” i want to write A4=" Yes". If it is A1=“Yes” and A2=“No” then i want to write A4=“No”. How do i do it ?

---

## [String array, if condition and dymanic selector](https://forum.uipath.com/t/string-array-if-condition-and-dymanic-selector/464182)

<div class="topic-metadata">

**Author:** [@RACHEL\_PAUL](https://forum.uipath.com/u/RACHEL_PAUL)\
**Yanıtlar:** 4\
**Son güncelleme:** [Ağustos 11, 2022, 7:14öö UTC](https://forum.uipath.com/t/string-array-if-condition-and-dymanic-selector/464182 "2022-08-11T07:14:06Z")

</div>

I have created a variable containing string values in the selector of the activity element exists. If the element exists i need to check if the variable has more than one value if it does i need to use a if statement. Wh…

[Sonraki sayfa](https://forum.uipath.com/tag/if-condition/2108.md?match_all_tags=true&page=1&tags%5B%5D=if-condition)
