Hi ,
I have a app I am building. In this app it ask's about 15 questions with radio buttons that have a yes or no answer. I need to write a if statement that counts how many yes's there are and if it more than 2 it changes the screen color. With the help from user @mdevaney I implemented the following code.
If((If(Radio1_26.SelectedText.OptionText ="No",2,0)+If(Radio1_2.SelectedText.OptionText ="Yes",1,0)+If(Radio1_3.SelectedText.OptionText ="Yes",1,0)+If(Radio1_4.SelectedText.OptionText ="Yes",1,0)+If(Radio1_5.SelectedText.OptionText ="Yes",1,0)+If(Radio1_6.SelectedText.OptionText ="Yes",1,0)+If(Radio1_7.SelectedText.OptionText ="Yes",1,0)+If(Radio1_8.SelectedText.OptionText ="Yes",1,0)+If(Radio1_9.SelectedText.OptionText ="Yes",1,0)+If(Radio1_10.SelectedText.OptionText ="Yes",1,0)+If(Radio1_14.SelectedText.OptionText ="Yes",1,0)+If(Radio1_15.SelectedText.OptionText ="Yes",1,0)+If(Radio1_16.SelectedText.OptionText ="Yes",1,0))>1,Green,Red)
Un fortunately no mater how many yes's or no's are selected it always stays green. I'm not sure what i have done wrong. any help would be greatly appreciated.