Pragmatic directives: Difference between revisions
no edit summary
m (→{{header|REXX}}: changed first bullet points into a "blue box".) |
No edit summary |
||
Line 345:
<br>The '''Size''' condition is raised when a numerical value is shorten
as a result of a convertion assigment.
=={{header|PowerShell}}==
The #Requires statement prevents a script from running unless the Windows
PowerShell version, modules, snap-ins, and module and snap-in version
prerequisites are met. If the prerequisites are not met, Windows PowerShell
does not run the script.
You can use #Requires statements in any script. You cannot use them in
functions, cmdlets, or snap-ins.
<lang PowerShell>
#Requires -Version <N>[.<n>]
#Requires –PSSnapin <PSSnapin-Name> [-Version <N>[.<n>]]
#Requires -Modules { <Module-Name> | <Hashtable> }
#Requires –ShellId <ShellId>
#Requires -RunAsAdministrator
</lang>
For a full description:
<lang PowerShell>
Get-Help about_Requires
</lang>
=={{header|Python}}==
|