Nasal library: Difference between revisions

Jump to navigation Jump to search
→‎resolvepath(): Nasal style; indentation
(→‎resolvepath(): Nasal style; indentation)
Tags: Mobile edit Mobile web edit
Line 2,061: Line 2,061:
|example2 = print(resolvepath("blah")); # prints nothing; could not be resolved
|example2 = print(resolvepath("blah")); # prints nothing; could not be resolved
|example3 = var file_path = resolvepath("Aircraft/SenecaII/some-file");
|example3 = var file_path = resolvepath("Aircraft/SenecaII/some-file");
if (file_path != "")
if (file_path != ""){
  gui.popupTip("some-file found", 2);
    gui.popupTip("some-file found", 2);
else
} else {
  gui.popupTip("some-file not found", 2);
    gui.popupTip("some-file not found", 2);
}
}}
}}


Navigation menu