Group in command

Is it possible to use groups in a command and
how to place them in the update part of a command?
Below the routine a want to use in a command.

	'order': command can-execute: user .'Type'?'Admin' {
        ...
		'blad': group {
			'j/n': stategroup (
				'ja' { }
				'nee' { }
			)
		}
		'bak': group {
			'j/n': stategroup (
				'ja' {
					'Merk': group { 'merk': text -> ^ ^ ^ ^ ^ ^ .'Presets'.'bakken'[]	}
				}
				'nee' {	}
			)
		}
     ...
} => update  .'order' = create (
   'blad' = ?
   'bak' = ?
)

Hi Anton, I think this should be possible. Groups are meant for grouping more than one property, usually, but your proposal seems possible nonetheless.

The way you get to these properties in the implementation is like this when ‘blad’ in the model is a stategroup

'blad' = switch . 'blad' . 'j/n' (
 | 'ja' => .. etc

or when blad is a group in the model as well, you can do something like this:

'blad' = (
  'j/n' = switch . 'blad' . 'j/n' (
     | 'ja' => .. etc

since blad is a group in the model I used this implementation
but for the lines to work I had to add: $ and as $
see below.

	'blad' = (
		'j/n' = switch $ .'blad'.'j/n' (
			|'ja' as $ =>

Yes, you’re right. Well, the first one might be @ . 'blad' . 'j/n', if the 'blad' group is one of the top-level parameters.