# YesNo

This Function returns a *\<boolean>*, which is the result of a search for a record in a Database, in compliance with the specified Conditions.

### Parameters

* **Default Button** *\<boolean> -* Button to select by default.
* **Window's Title** *\<string> -* Title to display in the opening window.
* **Text to show** *\<string> -* Question to perform to the user.

### **Examples**

* *Example 1*

YesNo(NO, "Exit", "Do you want to exit the application?")\
\
If the user presses the "Yes" button\
**Result** = TRUE\
\
If the user presses the "No" button\
**Result** = FALSE

{% hint style="info" %}
If you want to pass a dynamic value to the **Default Button** parameter, you can use 0, 1, TRUE or FALSE.
{% endhint %}

{% hint style="warning" %}
The text of the "Yes" and "No" buttons depend on the language of the operative system. Applicable to Win32 systems only
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sysdevmobile.com/kalipso5/developing/form/expressions/functions/functions-descriptions/conditional-functions/yesno.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
