I hava a Module in which a want to give a single String or a List as a parameter and I want to change a single String to a List containing this String. So I did the following: ClearAll[test]; test[in_] := Module[{}, If[Head[in] == String, {in}, in] ] Now test[“a”] works fine, but test[{“a”,”b”}] not,Read more