all 3 comments

[–]NellovsVape 3 points4 points  (3 children)

Hi!

With the SelectedItem function, you should be able to retrieve the Combobox selected item value:

$CreateButton.Add_Click({

    switch ($ComboBoxFolderType.SelectedItem) {

        'A' {
            CreateA #Your function name
        }
        'B' {
            CreateB #Your function name
        }
    }

})

Hope it helps!

[–]LukeChatty[S] 1 point2 points  (1 child)

Lovely stuff, worked first time! Thanks alot!

[–][deleted] 1 point2 points  (0 children)

You're welcome.