get the value of a global variable.
get_global/2 unifies Value with the value of the global variable Name.
Name atom (name of a global variable) Value term
| set_global(text, 'hello world'), get_global(text, X). | Succeeds with substitution X <- 'hello world'. |
This predicate is not part of the ISO-Prolog Standard.