Modify

Opened 9 years ago

Closed 9 years ago

#3543 closed Feature Request (Rejected)

New example script for "Ternary" operator's help page

Reported by: TheDcoder <TheDcoder@…> Owned by:
Milestone: Component: Documentation
Version: Severity: None
Keywords: Cc:

Description

Hello, I would like to propose a new example which can be added to the Ternary operator's help page.

#include <MsgBoxConstants.au3>

Example()

Func Example()
	$vBoolen = True
	$vExpression = ($vBoolen = True) ; This will evaluate to True since $vBoolen is equal to True
	$vResult = ($vExpression) ? ("$vExpression is True") : ("$vExpression is False") ; Everything inside brackets or parenthesis is an expression
	MsgBox($MB_SYSTEMMODAL, "Result", $vResult)
EndFunc

Attachments (0)

Change History (2)

comment:1 by Melba23, 9 years ago

What is wrong with the current example? Why do we need another one?

M23

comment:2 by Melba23, 9 years ago

Resolution: Rejected
Status: newclosed

Obviously there is nothing wrong with the current example.

M23

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.