> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/kalipso5/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/kalipso5/developing/form/expressions/functions/functions-descriptions/string-functions/complete.md).

# Complete

This Function returns a \<string>, composed by the *String to Complete* completed at right with the specified *Char*, with the specified *Total Length*.

### Parameters

* **String to Complete** <*string*> - Original string to be completed.
* **Char** <*string*> - Char to use in the completion.
* **Total Length** <*numeric*> - Final length of the string after completion.
* **Complete Left** <*boolean*> - Complete the string at left side?
* **Complete Right** <*boolean*> - Complete the string at right side?<br>

### Examples

* *Example 1*

Complete("Kalipso", "\*", 10, False, True)\
**Result** = Kalipso\*\*

* *Example 2*

Complete("Kalipso", "\*", 10, True, False)\
**Result** = \*\*\*Kalipso

* *Example 3*

Complete("Kalipso", "\*", 10, True, True)\
**Result** = \*\*Kalipso\*

* *Example 4*

Complete("Kalipso", "\*", 10, False, False)\
**Result** = Kalipso

* *Example 5*

Complete("Kalipso", "\*#", 10, False, True)\
**Result** = Kalipso\*#\*

* *Example 6*

Complete("Kalipso", "\*#", 10, True, True)\
**Result** = \*#Kalipso\*

{% hint style="info" %}
If you specify to **Complete Left** and **Complete Right**, the completion method starts at left.
{% endhint %}

{% hint style="info" %}
If you specify to don't **Complete Left** and don't **Complete Right**, the returned value is the **String to Complete**.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://doc.sysdevmobile.com/kalipso5/developing/form/expressions/functions/functions-descriptions/string-functions/complete.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
