3.2.4 Getting Main Program Variables Values

To get the value of a variable, the function is texinfo_get_conf:

Function: texinfo_get_conf ($variable_name)

$variable_name is the name of the variable; its value (possibly undef) is returned.

For example:

if (texinfo_get_conf('footnotestyle') eq 'separate') { ... }