i try to use an actionButton with observeEvent. My question is: can i define different actions with a second click on the button? something like
`observeEvent(input$verlauf,{
if (input$verlauf == 0){input$verlauf <- 1 & renderTable(BDI2())}
else if (input$verlauf == 1){input$verlauf <- 2 & renderTable(BDI2())}
else if (input$verlauf == 2){input$verlauf <- 3 & renderTable(BDI3())}
else if (input$verlauf == 3){input$verlauf <- 4 & renderTable(BDI4())}
else if (input$verlauf == 4){input$verlauf <- 5 & renderTable(BDI5())}
else if (input$verlauf == 5){input$verlauf <- 6 & renderTable(BDI6())}
else {}})`
on every click on the actionButton there should be a different action. How can i do this in my R / shiny code? it wont work
Thank you very much :)
derlu