mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-02 20:07:25 -05:00
27 lines
No EOL
712 B
PowerShell
Executable file
27 lines
No EOL
712 B
PowerShell
Executable file
$xml_file = [xml](get-content $args[0])
|
|
if($args.count -eq 2)
|
|
{
|
|
$var_output = ($xml_file.variables.($args[1]))
|
|
}
|
|
elseif($args.count -eq 3)
|
|
{
|
|
$var_output = ($xml_file.variables.($args[1]).($args[2]))
|
|
}
|
|
elseif($args.count -eq 4)
|
|
{
|
|
$var_output = ($xml_file.variables.($args[1]).($args[2]).($args[3]))
|
|
}
|
|
elseif($args.count -eq 5)
|
|
{
|
|
$var_output = ($xml_file.variables.($args[1]).($args[2]).($args[3]).($args[4]))
|
|
}
|
|
elseif($args.count -eq 6)
|
|
{
|
|
$var_output = ($xml_file.variables.($args[1]).($args[2]).($args[3]).($args[4]).($args[5]))
|
|
}
|
|
elseif($args.count -eq 7)
|
|
{
|
|
$var_output = ($xml_file.variables.($args[1]).($args[2]).($args[3]).($args[4]).($args[5]).($args[6]))
|
|
}
|
|
|
|
Write-Host "$var_output" |