String
1. Description
Allows various actions with strings.
This component is present in flow types like:
Voice;
Chat;
Forms;
Service.
The block (Fig.1(1)) is used in space to build the Flow. The settings panel for this component opens (Fig.1(2)) when you click on the block.
Fig.1. String component
1.1. String block
The block consists of the following elements:
The name of the component;
In branch — receiving (connecting with the previous block) branch;
Out branch — outgoing (connecting with the following block) branch. When hovering over the Out field, a switch appears. The switch allows this component to be connected to a component that already has a connection.
The presence of an icon indicates that the switch is on, and this component can be connected to a component that already has a connection.
Changing the switch position removes the outgoing branch of this component.
The button deletes the block from the Flow Schema.
1.2. String settings panel
It consists of the following elements:
Set result to variable;
Expression;
Method;
Function arguments;
Break;
Limit;
Add description.
1.2.1. Set result to variable
Here the name of a new variable is entered into which the result will be written.
1.2.2. Expression
Here you enter a variable with which you need to do actions.
1.2.3. Method
It is designed to select a method of actions. The following options are available:
length — returns the length of a string;
indexOf — returns the index of the first occurrence of the entered value in the String object on which it was called. Returns -1 if the value is not found;
search — searches the string for the entered value and returns the position of the match. The search value can be a string or a regular expression. This method returns -1 if no match is found;
slice — extracts text from one line and returns a new string;
substring — similar to slice. The difference is that a substring cannot accept negative indices;
substr — similar to slice. The difference is that the second parameter specifies the length of the extracted part;
replace — replaces the entered value with another value in the string;
toUpperCase — the string is converted to upper case;
charAt — returns the character at the specified index (position) in the string;
charCodeAt — returns the Unicode character at the specified index in the string;
split — the string can be converted to an array using the split function;
reverse — reverses the provided string;
base64 — base64 encoder/decoder;
MD5 — calculates a digest from a string using the MD5 algorithm;
SHA-256 — calculates the digest from the string using the SHA-256 algorithm;
SHA-512 — calculates the digest from the string using the SHA-512 algorithm;
1.2.4. Function arguments
Here you can enter an argument that is required for some methods.
1.2.5. Break
1.2.6. Limit
Fig. 2. Setting a limit
1.2.7. Add description
Fig. 3. Add description
- 1 1. Description
- 1.1 1.1. String block
- 1.2 1.2. String settings panel
- 1.2.1 1.2.1. Set result to variable
- 1.2.2 1.2.2. Expression
- 1.2.3 1.2.3. Method
- 1.2.4 1.2.4. Function arguments
- 1.2.5 1.2.5. Break
- 1.2.6 1.2.6. Limit
- 1.2.7 1.2.7. Add description
Англійська
Положення діалогуСтандартніПраворучЛіворучПоради9Бали за текст93Ретельний режимІгнорувати в цьому текстіПунктуаційнаcomponentПоказати в текстіFig.1. String componentcomponent.component!component?component:component,Please add a punctuation mark at the end of paragraph.Відключити правило всюдиІгнорувати в цьому текстіГраматичнаOutПоказати в тексті...ng with the following block) branch. When hovering over the Out field, a switch appears. The switch allows this component t...outOnly proper nouns start with an uppercase character (there are exceptions for headlines).Відключити правило всюдиІгнорувати в цьому текстіОрфографічнаindexOfПоказати в текстіindexOf — returns the index of the first occurrence of the entered...index OfPossible spelling mistake found.додати "indexOf" до персонального словникаІгнорувати в цьому текстіОрфографічнаsubstrПоказати в текстіsubstr — similar to slice. The difference is that the second param...Subs trPossible spelling mistake found.додати "substr" до персонального словникаІгнорувати в цьому текстіОрфографічнаtoUpperCaseПоказати в текстіtoUpperCase — the string is converted to upper case;UppercasePossible spelling mistake found.додати "toUpperCase" до персонального словникаІгнорувати в цьому текстіОрфографічнаcharAtПоказати в текстіcharAt — returns the character at the specified index (position) i...ChartKarateKarstKartCaratPossible spelling mistake found.додати "charAt" до персонального словникаІгнорувати в цьому текстіОрфографічнаcharCodeAtПоказати в текстіcharCodeAt — returns the Unicode character at the specified index in t...CharcoalCharcotChartbeatPossible spelling mistake found.додати "charCodeAt" до персонального словникаІгнорувати в цьому текстіПунктуаційнаlimitПоказати в текстіFig. 2. Setting a limitlimit.limit!limit?limit:limit,Please add a punctuation mark at the end of paragraph.Відключити правило всюдиІгнорувати в цьому текстіПунктуаційнаdescriptionПоказати в текстіFig. 3. Add descriptiondescription.description!description?description:description,Please add a punctuation mark at the end of paragraph.Відключити правило всюдиСимволів: 3 013
ДовідкаПерейти до довідкового центруНадіслати відгукСтатистика використанняВимкнути перевіркуВідключити тільки до наступного разуВідключити на цьому вебсайтіНалаштуванняResults are incomplete: Text checking was stopped due to too many errors.