The exists function determines whether a variable with the name specified by the string (in this case, the global variable g: syntax_on) has been defined.
The information you pass on the -g argument is a string that contains the information needed by the installer to find the SUSE AutoYaST XML file and the SUSE operating system install RPMs.