Following the 1.14 update I became interested in creating data packs; however, having only limited experience using the command system within Minecraft, I am finding it hard to locate resources for proper syntax and programming. Namely, calling a child function from a parent. The Minecraft Wiki seems to suggest that it is possible to create a variable and run a function from it ( In the wiki the example used is the foo:bar command which somehow links to the child function ). I understand that in the .mcfunction file each command is run line by line, so if it is indeed possible to create a variable what syntax would one use to separate the space of the function from the rest of the file?
Edit: I just realized that the first line within the example I referenced is the command being run in-game
Edit #2: apparently it is not an in game command, but rather a file calling a separate function, therefore acting as a variable.