Is the following code description correct ?
%% Test for empty Token List \feuds_teorema_parent_tl.
%% VTF are Type Specifers for the arguments to the function.
%% V Indicates that first argument is a variable (a Token List
%% Variable in this case). The variable is specified by its name
%% without the backslash.
%% T Indicates the code block to execute when test is true,
%% when Token List Variable is empty.
%% F Indicates the code block to execute when test is false,
%% when Token List Variable is not empty.
\tl_if_empty:VTF \feuds_teorema_parent_tl
%% IF CONDITION - Empty Parent, No Parent Counter
{
\tl_if_empty:VTF \feuds_teorema_shared_tl
%% IF CONDITION Empty Code Block
{
\feuds_newteora_simple:VV
\feuds_teorema_name_tl
\feuds_teorema_label_tl
}
%% ELSE CONDITION
{
%% Shared Counter
\feuds_newteorema_shared:VVV
\feuds_teorema_name_tl
\feuds_teorema_label_tl
\feuds_teorema_shared_tl
}
}
%% ELSE CONDITION Non-Empty Parent
{
%% Parent Counter
\feuds_newteorema_parent:VVV
\feuds_teorema_name_tl
\feuds_teorema_label_tl
\feuds_teorema_parent_tl
}
V,T, andFin comments ? – Veak Sep 28 '23 at 23:48V,Tare defined in "defining functions" section 4.3.1 (and section 1.1 Naming functions and variables) – David Carlisle Sep 28 '23 at 23:53l_org_prefix, denoting whether they should be assigned values locally or globally. In your case,\l_feud_teorema_parent_tl. – egreg Sep 29 '23 at 08:31