Modify

Opened 8 years ago

Closed 8 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 Changed 8 years ago by Melba23

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

M23

comment:2 Changed 8 years ago by Melba23

  • Resolution set to Rejected
  • Status changed from new to closed

Obviously there is nothing wrong with the current example.

M23

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.