--- title: "final-on-condition()" slug: "basic-final-on-condition" updated: 2025-09-17T19:18:59Z published: 2025-09-22T09:16:10Z canonical: "docs.lobstersoftware.com/basic-final-on-condition" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # final-on-condition() **This function is deprecated.** Always returns **a**. If the result of the operation **b** using the parameter **c** and - if needed for that operation - additional parameters **d**, … is *true* the result will be the final value and the execution of the function chain will be finished. If the function is used in a macro, the macro will be aborted and the function chain in which the macro is used. Is **a** set to the value *##EMPTY_VALUE##*, the Empty Flag will be set and an empty string ("") of length 0 will be returned. In order to perform the operation, the "logical-condition()" function is called. Parameters **b** - **g** are passed to this function (becoming **a** to **f** for that function). Possible values for **b** can be found in the description of that function. ## Parameters | Parameter | Description | | --- | --- | | a | Value to be returned or *##EMPTY_VALUE##* for an empty string ("") of length 0 with set Empty Flag. | | b | Parameter **a** in function "logical-condition()". | | c | Parameter **b** in function "logical-condition()". | | d | (optional) Parameter **c** in function "logical-condition()". | | e | (optional) Parameter **d** in function "logical-condition()". | | f | (optional) Parameter **e** in function "logical-condition()". | | g | (optional) Parameter **f** in function "logical-condition()". | ## Examples | Parameter a | Parameter b | Parameter c | Parameter d | Result | Final value | Result of function "get empty flag()" | | --- | --- | --- | --- | --- | --- | --- | | A value | not equal | 003 | 003 | A value | false | false | | A value | not equal | 004 | 003 | A value | true | false | | A value | < | 4 | 5 | A value | true | false | | A value | < | 5 | 4 | A value | false | false | | ##EMPTY_VALUE## | < | 4 | 5 | String of length 0 ("") | true | false | | ##EMPTY_VALUE## | < | 5 | 4 | String of length 0 ("") | false | true |