New button triggering workflow

<?php

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

use Symfony\Component\DependencyInjection\ContainerBuilder;

return static function (ContainerBuilder $container): void {


    $actions = $container->getParameter('module.recordview.actions') ?? [];
    $modules = $actions['modules'] ?? [];
    $leads = $modules['leads'] ?? [];
    $recordActions = $leads['actions'] ?? [];



    $recordActions['leads-assign'] = [
        'key' => 'leads-assign',
        "display" => "hide",
         "asyncProcess" => true,
        'labelKey' => 'LBL_ASSIGN', 
        'modes' => ['detail', 'edit'],
        'params' => [
			'displayConfirmation' => true, 
			'confirmationLabel' => 'LBL_ASSIGN_STATUS_CONFIRMATION',
			'module' => 'leads',
        ],
        'acl'=>["view"],
        "aclModule" =>"Leads",
        "displayLogic" => [
                        "leads_assign_visibility" => [
                            "modes" => [
                                0 => "detail",
                                1 => "edit",
                                2 => "create",
                            ],
                            "params" => [
                                "activeOnFields" => [
                                    "assign_flag_c" => [
                                        'operator'=>'equal',
                                        'value'=> 0,
                                    ],
                                ],
                            ],
                        ],
        ]
    ];


    $leads['actions'] = $recordActions;
    $modules['leads'] = $leads;
    $actions['modules'] = $modules;
    $container->setParameter('module.recordview.actions', $actions);
};

this change in code correct if i want button to be only visible in case flag=0