I think the problem is with the if condition. If I understand correctly you want to have if condition to check which input the person gave. So something like this:
Try this:
@@statistics_TextBlock: '2'
@@statistics_Input_Number: '1'
@@statistics_Action_Submit: '1'
Display.ShowCustomDialog CardTemplateJson: '''{
\"type\": \"AdaptiveCard\",
\"version\": \"1.4\",
\"id\": \"AdaptiveCard\",
\"body\": [
{
\"type\": \"TextBlock\",
\"id\": \"Text block\",
\"text\": \"${Text_block_Text}\"
},
{
\"type\": \"TextBlock\",
\"id\": \"Text block2\",
\"text\": \"${Text_block2_Text}\"
},
{
\"type\": \"Input.Number\",
\"id\": \"Number input\"
}
],
\"actions\": [
{
\"type\": \"Action.Submit\",
\"id\": \"Submit\",
\"title\": \"${Submit_Title}\"
}
],
\"FormTitle\": \"${AdaptiveCard_FormTitle}\"
}''' CustomFormData=> BType @AdaptiveCard_FormTitle: $'''BType''' @Text_block_Text: $'''0 - Statements or Correct Name''' @Text_block2_Text: $'''1 - BSES ; 2 - DJB ; 3 - IGL ; 4 - MF ; 5 - Purchases ; 6 - Stocks''' @Submit_Title: $'''Ok'''
IF Contains(BType['Number input'], 1, False) THEN
SET NewVar3 TO $'''selected 1'''
ELSE IF Contains(BType['Number input'], 2, False) THEN
SET NewVar3 TO $'''selected 2'''
ELSE IF Contains(BType['Number input'], 3, False) THEN
SET NewVar3 TO $'''selected 3'''
END
Or you can modify it to be choices to avoid user input error. So user wont accidentally put "BSES" or 9 when the logic expects numbers numbers and doesn't have numbers up to 9.

Or if you want one condition to check if user selected options 1-3 then like so:

Code: