Please Log in to join the conversation.
$usersCount = $variables['var1']->get( '_users', 0 );
$variables['var1']->set( '_users', ( $usersCount ? $usersCount - 1 : 0 ) );
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
The reference is set to Parameters->References->Variable 1.Be sure the reference is set under the Parameters tab. This may not work if users count is having to fallback to performing the count as a separate query though.
Please Log in to join the conversation.
$usersCount = $variables['var2']->get( '_users', 0 );
$variables['var2']->set( '_users', ( $usersCount ? $usersCount - 1 : 0 ) );
Please Log in to join the conversation.