Powershell: Combining variables -
i'm new powershell , have question:
i made function:
function a_function($a,$b){ $d = $a + $b $d } a_function "0","1"
the problem is, function gives output:
0 1
and on 1 line:
01
i tried things like:
$d = ($a + $b) #result: same sabove $d = (""+$a + $b+"") #result: 1 0, dont want space inbetween $d = "$a$b" #result: 1 0, dont want space inbetween
thank helping
you sending array , bind $a only. in powershell delimit arguments space. try way instead:
a_function "0" "1"
also note you're adding 2 strings, result "01" ant not 1, in case wanted add numbers.