Sign in to follow this  
Followers 0
Glyph

3 statements into 1?

5 posts in this topic

$Day = IniRead( @ScriptDir & '\Settings.ini', 'Day', '0', 'Message Here' )
$Month = IniRead( @ScriptDir & '\Settings.ini', 'Month', '1', 'Message Here' )
$Year = IniRead( @ScriptDir & '\Settings.ini', 'Year', '2', 'Message Here' )
$Event = IniRead( @ScriptDir & '\Settings.ini', 'Event', '3', 'Message Here' )

if @MDAY = $day 
if @MDAY = $Day
if @MON = $Month
if @YEAR = $Year then

MsgBox (0,"Calender Event", $Event)

What statement is best to approach this?


tolle indicium

Share this post


Link to post
Share on other sites



$Day = IniRead( @ScriptDir & '\Settings.ini', 'Day', '0', 'Message Here' )
$Month = IniRead( @ScriptDir & '\Settings.ini', 'Month', '1', 'Message Here' )
$Year = IniRead( @ScriptDir & '\Settings.ini', 'Year', '2', 'Message Here' )
$Event = IniRead( @ScriptDir & '\Settings.ini', 'Event', '3', 'Message Here' )

if @MDAY = $day 
if @MDAY = $Day
if @MON = $Month
if @YEAR = $Year then

MsgBox (0,"Calender Event", $Event)

What statement is best to approach this?

and ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

$Day = IniRead( @ScriptDir & '\Settings.ini', 'Day', '0', 'Message Here' )
$Month = IniRead( @ScriptDir & '\Settings.ini', 'Month', '1', 'Message Here' )
$Year = IniRead( @ScriptDir & '\Settings.ini', 'Year', '2', 'Message Here' )
$Event = IniRead( @ScriptDir & '\Settings.ini', 'Event', '3', 'Message Here' )

if @MDAY = $day 
if @MDAY = $Day
if @MON = $Month
if @YEAR = $Year then

MsgBox (0,"Calender Event", $Event)
oÝ÷ ÙhZ¶ËZµéجmë-¶©¦ºraÏêº^·²¢ëkÊ)à¶h²¶§X¤zØb±«­¢+Ø(ÀÌØíäô%¹¥I MÉ¥ÁѥȵÀìÌäìÀäÈíMÑÑ¥¹Ì¹¥¹¤Ìäì°ÌäíäÌäì°ÌäìÀÌäì°Ìäí5ÍÍ!ÉÌäì¤(ÀÌØí5½¹Ñ ô%¹¥I MÉ¥ÁѥȵÀìÌäìÀäÈíMÑÑ¥¹Ì¹¥¹¤Ìäì°Ìäí5½¹Ñ Ìäì°ÌäìÄÌäì°Ìäí5ÍÍ!ÉÌäì¤(ÀÌØíeÈô%¹¥I MÉ¥ÁѥȵÀìÌäìÀäÈíMÑÑ¥¹Ì¹¥¹¤Ìäì°ÌäíeÈÌäì°ÌäìÈÌäì°Ìäí5ÍÍ!ÉÌäì¤(ÀÌØíÙ¹Ðô%¹¥I MÉ¥ÁѥȵÀìÌäìÀäÈíMÑÑ¥¹Ì¹¥¹¤Ìäì°ÌäíÙ¹ÐÌäì°ÌäìÌÌäì°Ìäí5ÍÍ!ÉÌäì¤()%5dôÀÌØíä¹5=8ôÀÌØí5½¹Ñ ¹eHôÀÌØíeÈÑ¡¸(5Í  ½à À°ÅÕ½Ðí
±¹ÈÙ¹ÐÅÕ½Ðì°ÀÌØíٹФ)¹%(
Edited by Paulie

Share this post


Link to post
Share on other sites

lol.. you are right!, you get the prize of " 200 Gold! "


tolle indicium

Share this post


Link to post
Share on other sites

Hi,

If @MDAY = IniRead(@ScriptDir & '\Settings.ini', 'Day', '0', 'Message Here') And @MDAY = IniRead(@ScriptDir & '\Settings.ini', 'Month', '1', 'Message Here') _
        And @MON = IniRead(@ScriptDir & '\Settings.ini', 'Year', '2', 'Message Here') And @YEAR = IniRead(@ScriptDir & '\Settings.ini', 'Event', '3', 'Message Here') Then
    MsgBox(0, "Calender Event", $Event)
EndIf

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0