Skip to content

6.2 Organise Groups into Folders

Davide Magni edited this page Sep 1, 2016 · 5 revisions

There are a few functions to organise your Groups into Folders. Let's see them.

create_group_folder

Create a Folder and give it a name.

create_group_folder(<folder_name>)

  • folder_name Folder name.

When you create a new Folder, Koala instantiates a variable called folder_name. The value of this variable is the ID of the new Folder and can be used, for instance, in conjuction with get_group_folder(group_id).

create_group_folder(FOLDER_1)

add_group_id(FOLDER_1, 0)

{Check if Group 0 is assigned to FOLDER_1 and perform operations}
if ( get_group_folder(0) = FOLDER_1 )
	{...}
end if

add_group_id

Add a Group with a specific ID to a specific Folder.

add_group_id(<folder_name>, <group_id>)

  • folder_name Folder name.
  • group_id ID of the Group to add.

add_group_name

Add a Group with a specific name to a specific Folder.

add_group_name(<folder_name>, <group_name>)

  • folder_name Folder name.
  • group_name Name of the Group to add.

get_group_folder

Inline function. Returns the ID of the Folder a Group is assigned to.

get_group_folder(group_id)

HINT: remember

Clone this wiki locally