Function LastValue( );

pls give me details on above function with examples, i didn’t understand it well from amibroker’s refrence guide.

the syntax of lastvalue function is 

LastValue(ARRAY, lastmode = True )


it writes the last traded price or  LTP 

the example of this function is 

BarL = LastValue(BarC,1);