PoshCode Archive  Artifact [a5f8e92e70]

Artifact a5f8e92e7030327590d98361ff921383ecf0e33d611c819dbfff88704cde2b95:

  • File Add-ForeachStatement.ps1 — part of check-in [070014872d] at 2018-06-10 13:39:24 on branch trunk — This file was uploaded by a PowerGUI Script Editor Add-on. (user: Anonymous size: 851)

# 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