User Tools

Site Tools


4rpl:commands:settableelement

This is an old revision of the document!


Index

SetTableElement

SetTableElement(<-table <-key <-value

Description

Sets an element in a table. Note that keys are case sensitive strings. A special syntax can also be used to set a table element. See the example below.

Examples

 CreateTable ->table
 SetTableElement(<-table "SomeKey" 42)
 trace(GetTableElement(<-table "SomeKey"))  #prints "42"
 
 #alternate syntax
 #Use curly braces around to surround the key.
 42 ->table{"SomeKey"}
 

Index

4rpl/commands/settableelement.1610640981.txt.gz · Last modified: 2021/01/14 11:16 by Sanian