如何使用IF以及其他复选框或在Redux中选择



我想使用redux复选框,然后选择选项,就像前端一样。在Redux文档中,我没有发现有关IF&否。

我想要这样的东西:

<?php if ($redux_demo['opt_checkbox']) { echo "my text" } else { echo"the other text" } endif ?>
  <?php 
$checkboxset = "ABC";
if ($redux_demo['opt_checkbox']==$checkboxset) { echo "my text" } else { echo"the other text" } ?>

尝试此

if (!(isset($redux_demo['opt_checkbox']))) 
{ 
    echo "my text"; 
}
else 
{ 
    echo"the other text" 
}

最新更新