If / Else Multiple Statement I would like some help in getting my wix code to work.

export function input10_input ( event ) {
if ( $w ( “#input10” ). value === “0” ) {
if ( $w ( “#input21” ). hidden ) {
if ( $w ( “#input22” ). hidden ) {
if ( $w ( “#input23” ). hidden ) {
if ( $w ( “#input24” ). hidden ) {
// input21 hidden, input22 hidden, input23 hidden, input24 hidden
}
} else {
if ( $w ( “#input10” ). value === “1” ) {
if ( $w ( “#input21” ). isVisible ) {
if ( $w ( “#input22” ). hidden ) {
if ( $w ( “#input23” ). hidden ) {
if ( $w ( “#input24” ). hidden ) {
// input21 isVisible, input22 hidden, input23 hidden, input24 hidden
}
} else {
if ( $w ( “#input10” ). value === “2” ) {
if ( $w ( “#input21” ). isVisible ) {
if ( $w ( “#input22” ). isVisible ) {
if ( $w ( “#input23” ). hidden ) {
if ( $w ( “#input24” ). hidden ) {
// input21 isVisible, input22 isVisible, input23 hidden, input24 hidden
}
} else {
if ( $w ( “#input10” ). value === “3” ) {
if ( $w ( “#input21” ). isVisible ) {
if ( $w ( “#input22” ). isVisible ) {
if ( $w ( “#input23” ). isVisible ) {
if ( $w ( “#input24” ). hidden ) {
// input21 isVisible, input22 isVisible, input23 isVisible, input24 hidden
} else {
if ( $w ( “#input10” ). value === “4” ) {
if ( $w ( “#input21” ). isVisible ) {
if ( $w ( “#input22” ). isVisible ) {
if ( $w ( “#input23” ). isVisible ) {
if ( $w ( “#input24” ). isVisible ) {
// input21 isVisible, input22 isVisible, input23 isVisible, input24 isVisible
}

You do not describe your issue.
What does not work?
What are you trying to achieve?

I have section where members can insert the number of child. If they input 0 in that input box then Dob child 1 ,2…4 will not be displayed or else if 1 then Dob of one child must be displayed so on .

To keep it simple…

$w.onReady(()=>{
   $w('#input10').onChange(()=>{
      if ($w("#input10").value === "0") {
         $w("#input21").hide()
         $w("#input22").hide()
         $w("#input23").hide()
         $w("#input24").hide()
     }
     else if ($w("#input10").value==="1") {
         $w("#input21").show()
         $w("#input22").hide()
         $w("#input23").hide()
         $w("#input24").hide()
     }
     else if ($w("#input10").value==="2") {
         $w("#input21").hide()
         $w("#input22").show()
         $w("#input23").hide()
         $w("#input24").hide()
     } //...and so on....
       //...
       //...
       //...
         
     else{ /* end-statement here.....*/ }
   });  
});

I want to thank you heaps the code you wrote for me worked a gem .

No problem. Good luck with your project.

And do pay attention …
Every time you open → { <— a braket you should also close it again at the end → } ←