RENAME

Syntax

RENAME filename1.ext filename2

Explanation

RENAME changes the name of the file specified by its first input to its second input. If the file specified does not exist or if the first and second inputs are the same, RENAME outputs FALSE, otherwise, it outputs TRUE.

Examples

? SAVE "LALA

Saving workspace in file LALA.LGO

Result: TRUE

? RENAME "LALA.LGO "LULU

Result: TRUE

? RENAME "LALA.LGO "LOLO

Result: FALSE

?