Skip to main content
OnCommand Workflow Automation 5.0
이 제품의 최신 릴리즈를 사용할 수 있습니다.
본 한국어 번역은 사용자 편의를 위해 제공되는 기계 번역입니다. 영어 버전과 한국어 버전이 서로 어긋나는 경우에는 언제나 영어 버전이 우선합니다.

들여쓰기를 위한 지침

기여자

WFA(OnCommand Workflow Automation)용 PowerShell 또는 Perl 스크립트를 작성할 때 들여쓰기에 대한 지침을 숙지해야 합니다.

지침

탭은 네 개의 빈 공간과 같습니다.

탭과 중괄호를 사용하여 블럭의 시작과 끝을 표시합니다.

PowerShell 스크립트

if
($pair.length-ne 2)
{
throw "Got wrong input data"
}

Perl 스크립트

if
(defined $MaxDirectorySize)
{
# convert from MBytes to Bytes
my $MaxDirectorySizeBytes = $MaxDirectorySize *
1024 * 1024;
}

작업 집합 또는 코드 청크 사이에 빈 줄을 추가합니다.

$options=$option.trim();
$pair=$option.split(" ");
Get-WFAlogger -Info -messages $("split options: "+
$Pair)