# encoding: ascii
# api: powershell
# title: Add-ForeachStatement.ps1
# description: This file was uploaded by a PowerGUI Script Editor Add-on.
# version: 0.1
# type: function
# author: Anonymous
# license: CC0
# function: Add-ForeachStatement
# x-poshcode-id: 4311
# x-archived: 2013-07-25T10:49:14
# x-published: 2013-07-19T09:44:00
#
#
function Add-ForeachStatement
{
<#
.Synopsis
Adds a Foreach Statement to the current document Adds a Foreach Statement to the current document Adds a Foreach Statement to the current document
.Description
Adds a Foreach Statement to the current document
.Example
Add-ForeachStatement
#>
param()
process {
Add-TextToCurrentDocument -Text "foreach (`$item in `$listOfItems) { <# Do Something #> }"
}
}
Add-ForeachStatement