Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Labels added for easier search. More explanation added to example

...


Code Block
always {
  ent:a := 1; 										// sets entity variable "a" to 1
  app:b{"foo"} := 1 + my_var.defaultsTo(0); 		// sets top-level key "foo" in the map inside of app variable "b"
  ent:b{["flip", "flop"]} := "this is a string"; 	// hash path into map inside of entity 
  ent:c := null;									// sets entity variable to null
  clear ent:a										// clears the entity variable so it does not exist
}