Narcissist: Difference between revisions
Content added Content deleted
(Replaced PowerShell with sample that meets task objectives) |
|||
Line 264:
=={{header|PowerShell}}==
{{works with|PowerShell|2}}
<lang PowerShell>
function
{
Param ( [string]$String )
If ( $String -eq $MyInvocation.MyCommand.Definition ) { 'Accept' }
Else { 'Reject' }
}
</lang>
<lang PowerShell>
Narcissist 'Banana'
Narcissist @'
Param ( [string]$String )
If ( $String -eq $MyInvocation.MyCommand.Definition ) { 'Accept' }
Else { 'Reject' }
'@
</lang>
{{out}}
<pre>
Reject
Accept
</pre>
|