Premium Only Content

EasyLanguage Tutorial 196 | Scope in methods (plus convert a function to a method) | Part 2
Tutorial 196 gives an example of “scope” in the context of a method.
A common guideline in good programming practice suggests that a method should ideally only utilize variables that are provided through its parameter list or those that are locally declared within the method itself. However, there are situations where adhering strictly to this principle might be overly cumbersome or impractical. In such cases, it becomes possible to reference variables that have been declared at a the EasyLanguage study level.
Both “types” of methods are demonstrated in this tutorial.
When a variable is declared within the primary section of a study, it can be directly accessed and modified throughout that study. Nevertheless, when a method is invoked, it operates within its designated scope by design. This means that a variable declared within a method is confined to that method’s scope. Even if a variable with an identical name exists elsewhere, it is treated as a distinct and separate entity, maintaining its own distinct scope within the method.
To demonstrate converting the functions to methods two functions are used:
XAverage (a series function), and
Average( a simple function)
-
52:11
Sarah Westall
7 hours agoBread and Circus Keeps you Financially Ignorant – Its Better for the Elites w/ Chris Russo
47.8K3 -
LIVE
I_Came_With_Fire_Podcast
13 hours agoFriday Night Live Fire
458 watching -
1:20:39
Flyover Conservatives
15 hours agoFrom Demonic Deception to Divine Direction: Sid Roth’s Radical Encounter With God | FOC Show
40.9K1 -
DVR
Chrissie Mayr
3 hours agoChrissie Mayr Reactions to Charlie Kirk, Liberal Celebrations, and More
35.9K11 -
1:05:46
AlaskanBallistics
3 hours ago $0.79 earnedRemembering Charlie Kirk
38.2K6 -
1:23:27
Glenn Greenwald
6 hours agoNetanyahu’s Crude Exploitation of Charlie Kirk’s Death to Get the American Right Back into Line; Plus: Q&A With Glenn on Charlie Kirk's Assassination, Online Civil Discourse, and More | SYSTEM UPDATE #514
202K137 -
4:10:25
Nerdrotic
9 hours ago $1.04 earnedCulture Is VITAL! Streaming BUST, Warner Bros. Buyout | Friday Night Tights 371 with Vara Dark
213K27 -
1:02:32
BonginoReport
8 hours agoCharlie Kirk’s Assassin In Custody, Details Emerge - Nightly Scroll w/ Hayley Caronia (Ep.133)
196K202 -
LIVE
LFA TV
1 day agoKILLER CAUGHT LIVE PRESSER! - FRIDAY 9/12/25
600 watching -
26:08
The Mel K Show
7 hours agoMel K & Ken Silva | Updates: Trump Attempted Assassination Trial, North Carolina Investigation, & Silver Bump! | 9-12-25
51.3K5