@push() Fonksiyonu |
![]() ![]() ![]() |
MScript supports stack functionality by means of push(), peek() and pop() functions @push() function inserts a new value to the stack and makes it the current value. Syntax: @push(stack-name, expression)
stack-name The name of the stack expression The expression whose evaluated result to be inserted to the stack.
Example: @push(X,'AA') @push(X,'BB') @peek(X) @// Returned value : 'CC' @pop(X) @peek(X) @// Returned value : 'BB' @pop(X) @peek(X) @// Returned value : ''
|