Statements.NewIfStatement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[Microsoft.FSharp.Core.CompilationArgumentCounts(new System.Int32[] { 2, 1, 1 })]
public static Microsoft.Quantum.QsCompiler.SyntaxTree.QsStatement NewIfStatement (Microsoft.Quantum.QsCompiler.SyntaxTree.TypedExpression ifBlock_0, Microsoft.Quantum.QsCompiler.SyntaxTree.QsPositionedBlock ifBlock_1, System.Collections.Generic.IEnumerable<Tuple<Microsoft.Quantum.QsCompiler.SyntaxTree.TypedExpression,Microsoft.Quantum.QsCompiler.SyntaxTree.QsPositionedBlock>> elifBlocks, Microsoft.Quantum.QsCompiler.DataTypes.QsNullable<Microsoft.Quantum.QsCompiler.SyntaxTree.QsPositionedBlock> elseBlock);
[<Microsoft.FSharp.Core.CompilationArgumentCounts(new System.Int32[] { 2, 1, 1 })>]
Microsoft.Quantum.QsCompiler.SyntaxProcessing.Statements.NewIfStatement : Microsoft.Quantum.QsCompiler.SyntaxTree.TypedExpression * Microsoft.Quantum.QsCompiler.SyntaxTree.QsPositionedBlock -> seq<Microsoft.Quantum.QsCompiler.SyntaxTree.TypedExpression * Microsoft.Quantum.QsCompiler.SyntaxTree.QsPositionedBlock> -> Microsoft.Quantum.QsCompiler.DataTypes.QsNullable<Microsoft.Quantum.QsCompiler.SyntaxTree.QsPositionedBlock> -> Microsoft.Quantum.QsCompiler.SyntaxTree.QsStatement
Public Shared Function NewIfStatement (ifBlock_0 As TypedExpression, ifBlock_1 As QsPositionedBlock, elifBlocks As IEnumerable(Of Tuple(Of TypedExpression, QsPositionedBlock)), elseBlock As QsNullable(Of QsPositionedBlock)) As QsStatement
Parameters
- ifBlock_0
- TypedExpression
- ifBlock_1
- QsPositionedBlock
- elifBlocks
- IEnumerable<Tuple<TypedExpression,QsPositionedBlock>>
- elseBlock
- QsNullable<QsPositionedBlock>
Returns
- Attributes
-
Microsoft.FSharp.Core.CompilationArgumentCountsAttribute