128
edits
m (→Language Reference: Grammar fixes) |
(→fetchvar: Corrected return type and example) |
||
Line 205: | Line 205: | ||
==== fetchvar ==== | ==== fetchvar ==== | ||
'' | ''string'' '''fetchvar'''(''string'' variable); | ||
Returns the variable given as an argument. | Returns the variable given as an argument. | ||
Examples: | |||
@test1 = "Hi!" | @test1 = "Hi!"; | ||
fetchvar("test" + 1) // Returns "Hi!" | fetchvar("@test" + 1); // Returns "Hi!" | ||
@test2 = 1; | |||
fetchvar("$latestwatched_id" + @test2 + "_aname"); | |||
//Returns the name of the latest anime you watched | |||
==== if ==== | ==== if ==== |
edits