Skip to content

Commit

Permalink
docs: minor doc update #2710
Browse files Browse the repository at this point in the history
  • Loading branch information
jgomer2001 committed Oct 25, 2022
1 parent 4591e70 commit 35bd980
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/admin/developer/agama/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ This is to avoid traversing big structures fully. You can increase the value of

### How to add two numbers or compare numeric values in Agama?

Agama only provides operators for boolean comparison in conditional statements. The structure of an authentication flow will rarely have to deal with computations/comparisons of numbers, strings, etc. In case this is needed, developers have to resort to Java.
Agama only provides operators for equality check in conditional statements. The structure of an authentication flow will rarely have to deal with computations/comparisons of numbers, strings, etc. In case this is needed, developers have to resort to Java.

_Hint_: some methods like `addExact`, `incrementExact`, etc. in `java.lang.Math` might help.

### How to concatenate strings in Agama?

Expand All @@ -139,6 +141,10 @@ Call java.lang.String#join "" strings

See the examples in the Looping section of the DSL [full reference](./dsl-full.md#looping).

## How to know the number of iterations carried out by a loop once it has finished?

You can assign this value to a variable at the top of your loop declaration. See the examples in the Looping section of the DSL [full reference](./dsl-full.md#looping).

### Can Agama code be called from Java?

No. These two languages are supposed to play roles that should not be mixed, check [here](./dsl.md#introduction) and [here](./lifecycle.md#design-and-code).

0 comments on commit 35bd980

Please sign in to comment.