๐Ÿ“šCreate ๐Ÿ†• Programmer๐Ÿ”ยฉ
341 subscribers
125 photos
60 files
120 links
๐ŸพAdimn: #Programmer_femo ๐ŸŒธ๐Ÿƒ

๐Ÿพ @Askfemo_bot ๐ŸŒธ๐Ÿƒ

๐ŸพLearning Programming๐ŸŒธ๐Ÿƒ

๐ŸพWeb Design๐ŸŒธ๐Ÿƒ

๐ŸพAbout software๐ŸŒธ๐Ÿƒ

๐ŸพCode๐ŸŒธ๐Ÿƒ

๐ŸพLua -bot-telegram๐ŸŒธ๐Ÿƒ
Download Telegram
๐Ÿ˜น๐Ÿ‘†๐Ÿปุงุฐุง ูƒู…ู„ุชูˆ ู…ู† ู‡ุฐุง ูƒูˆู„ูˆู„ูŠ ุญุชุฉ ุงู†ุฒู„ ุบูŠุฑุฉ ู„ูˆ ุงูˆูƒู ุจุงู„ู†ุดุฑ ๐ŸŒฟ
This media is not supported in your browser
VIEW IN TELEGRAM
๐Ÿ˜๐Ÿ’”ุฑุงุญ ุงูƒู…ู„
Lua: ๐Ÿ’œ ุงู„ุชุนุงุจูŠุฑ ุงู„ู…ู†ุทู‚ูŠุฉ ุชูˆุถูŠุญ ๐ŸŒโšœ

โˆโ”โ”โ”โ” โ†ฃ๐Ÿ”†โ†ค โ”โ”โ”โ”โˆ



ุงู„ู‚ูŠู… ุงู„ู…ู†ุทู‚ูŠุฉ ู‡ูŠ ุฅู…ุง ุตุญูŠุญุฉ true ุฃูˆ ุฎุงุทุฆุฉ false. ุฅุฐุง ูƒุงู†ุช ู‚ูŠู…ุฉ ู‡ุฐุง ู„ูŠุณ ุตุญูŠุญุง ุŒ ูˆูŠุฌุจ ุฃู† ุชูƒูˆู† ุตุญูŠุญุฉ ู„ุง ูŠู…ูƒู† ุงู„ู…ุดุบู„ ู†ุงุฆุจ versa.L ุชูˆุถุน ู‚ุจู„ ู‚ูŠู…ุฉ ู…ู†ุทู‚ูŠุฉ ู„ุฃูŠ ุนูƒุณ ุฏ.. ู„ูŠุณ ุตุญูŠุญุง ู…ุง ูŠุนุงุฏู„ ูƒุงุฐุจุฉ.
Boolean values are either true or false. If a value is not true, it must be false and vice versa.L operator can not be placed before a Boolean value for the reverse ie d .. not true equals false.

> x = true
> print(x)
true
> print(not x)
false
> print(not false)
true

Boolean values are used to represent the logical test results. The equal comparison operators = =, = ~ and will return different values depending on the Boolean values they compare.
ูŠุชู… ุงุณุชุฎุฏุงู… ุงู„ู‚ูŠู… ุงู„ู…ู†ุทู‚ูŠุฉ ู„ุชู…ุซูŠู„ ู†ุชุงุฆุฌ ุงุฎุชุจุงุฑ ู…ู†ุทู‚ูŠ. ุนูˆุงู…ู„ ุงู„ู…ู‚ุงุฑู†ุฉ ู…ุชุณุงูˆูŠุฉ = = = ~ ูˆุณูŠุนูˆุฏ ู‚ูŠู… ู…ุฎุชู„ูุฉ ุงุนุชู…ุงุฏุง ุนู„ู‰ ุงู„ู‚ูŠู… ุงู„ุชูŠ ู…ู†ุทู‚ูŠุฉ ู…ู‚ุงุฑู†ุฉ.
> print(1 == 0) โ€” test whether two numbers are equal ุงุฎุชุจุงุฑ ู…ุง ุฅุฐุง ูƒุงู† ุฑู‚ู…ูŠู† ู…ุชุณุงูˆูˆู†
false
> print(1 == 1)
true
> print(1 ~= 0) โ€” test whether two numbers are not equal ุงุฎุชุจุงุฑ ู…ุง ุฅุฐุง ูƒุงู† ุฑู‚ู…ูŠู† ู„ูŠุณุช ู…ุชุณุงูˆูŠุฉ
true
> print(true ~= false) โ€” is true not equal to false? false ู„ุง ูŠุณุงูˆูŠ true
true

โˆโ”โ”โ”โ” โ†ฃ๐Ÿ”†โ†ค โ”โ”โ”โ”โˆ

Bot-telegram|๐Ÿ’—| @progfemo96||@progfemo96_bot
๐Ÿ‘†๐Ÿป ู„ู‡ู†ุง ูˆุงูˆูƒู ุงู„ูŠูˆู… ุจู„ุดุฑุญ ู„ูˆ ุงูƒู…ู„ุŸ
Lua: Fonctions ุงู„ุฏูˆุงู„_ ๐ŸŒโšœ

โˆโ”โ”โ”โ” โ†ฃ๐Ÿ”†โ†ค โ”โ”โ”โ”โˆ
ููŠ ู„ูˆุง ุŒ ูŠุชู… ุชุนูŠูŠู† ูˆุธุงุฆู ุฅู„ู‰ ุงู„ู…ุชุบูŠุฑุงุช ุŒ ุชู…ุงู…ุง ู…ุซู„ ุงู„ุฃุฑู‚ุงู… ูˆุณู„ุงุณู„. ูŠุชู… ุฅู†ุดุงุก ูˆุธุงุฆู ุงู„ูƒู„ู…ุฉ function
ุฃุฏู†ุงู‡ ูˆู†ุญู† ุฅู†ุดุงุก ุฏุงู„ุฉ ุจุณูŠุทุฉ ุงู„ุชูŠ ุณุชุทุจุน ุฑุณุงู„ุฉ ู…ุฑุญุจุง.
> function foo() print("hello") end โ€” declare the function ุจุชุนุฑูŠู ุงู„ุฏุงู„ุฉ
> foo() โ€” call the function ุงุณุชุฏุนุงุก ุงู„ุฏุงู„ุฉ
hello
> print(foo) โ€” get the value of the variable "foo" ุงู„ุญุตูˆู„ ุนู„ู‰ ู‚ูŠู…ุฉ ุงู„ู…ุชุบูŠุฑ
function: 0035D6E8
ู…ู„ุงุญุธุฉ : ูŠู…ูƒู†ู†ุง ุทุจุงุนุฉ ู‚ูŠู…ุฉ ุงู„ู…ุชุบูŠุฑ "foo" (ู…ุซู„ ุงู„ุฌุฏุงูˆู„) ุนุฏู†ุง ูุฑูŠุฏ (ุนู†ูˆุงู† ููŠ ุงู„ุฐุงูƒุฑุฉ). ูˆู‡ูƒุฐุง ุŒ ูˆุธูŠูุฉ ู‡ูˆ ู…ุชุบูŠุฑ ูŠู…ูƒู†ู†ุง ุชุฎุตูŠุต ูˆุธุงุฆู ู„ู„ู…ุชุบูŠุฑุงุช ุŒ ูƒู…ุง ู„ุบูŠุฑู‡ุง ู…ู† ุงู„ู…ุชุบูŠุฑุงุช ุงู„ุชูŠ ุชุนุทูŠ.

> x = function() print("hello") end
> x()
hello
> print(x)
function: 0035EA20
ูˆุชุชุนู„ู‚ ุงู„ู‚ุฏุฑุฉ ุนู„ู‰ ุงู„ู‚ูŠุงู… ุจุฐู„ูƒ ู„ู‚ูŠู… ู…ู† ุงู„ุฏุฑุฌุฉ ุงู„ุฃูˆู„ู‰. ูˆู‡ุฐุง ูŠุนู†ูŠ ุฃู† ูƒู„ ุงู„ู‚ูŠู… ูŠุนุงู…ู„ูˆู† ุจู†ูุณ ุงู„ุทุฑูŠู‚ุฉ. ู‡ุฐุง ู‡ูˆ ู„ูˆุง ู‚ูˆูŠุฉ ุฌุฏุง ูˆู…ููŠุฏุฉ.



โˆโ”โ”โ”โ” โ†ฃ๐Ÿ”†โ†ค โ”โ”โ”โ”โˆ

Bot-telegram|๐Ÿ’—| @progfemo96||@progfemo96_bot
This media is not supported in your browser
VIEW IN TELEGRAM
๐Ÿ˜–ู„ู‡ู†ุง ูˆุฑุงุญ ุงูˆูƒู ุจู„ุดุฑุญ ุงู„ูŠูˆู… ๐Ÿ’”โ˜น๏ธุชุนุจุช ุงู†ุงู… #ุชุตุจุญูˆู†_ุน_1000_ุฎูŠุฑ๐Ÿฃ
๐Ÿ“šCreate ๐Ÿ†• Programmer๐Ÿ”ยฉ
https://telegram.me/progfemo96_bot
๐Ÿ‘†๐Ÿป๐Ÿ™ƒุงู„ูŠ ุนู†ุฏุฉ ุณุคุงู„ ุงูˆ ุงุณุชูุณุงุฑ ูŠุฌูŠ ุน ุจูˆุช ๐Ÿ˜…ุงุฐุง ุดูŠ ู…ู‡ู… ุชุนุงู„ ุฎุงุต ๐Ÿ’“
Forwarded from Deleted Account
@YTranslateBot ุจูˆุช ุชุฑุฌู…ู‡ ุญู„ูˆ ูˆู…ููŠุฏ
Forwarded from Deleted Account
@AIPrismaBot ุจูˆุช ูู„ุชุฑุฉ ุงู„ุตูˆุฑ ุจู…ูƒุงู† ุงู„ููˆุชูˆุดูˆุจ ุญู„ูˆูˆ ู…ุฌุฑุฏ ุชุฑุณู„ ุตูˆุฑุฉ ูˆูŠูู„ุชุฑู‡ุฉ ุงู„ูƒ ูˆูŠุฏุฒู‡ุฉ
Forwarded from Deleted Account
@YTAudioBot ุจูˆุช ุญู„ูˆ ูƒู„ุด ูˆู…ููŠุฏ ู…ุฌุฑุฏ ุชุฏุฒู„ุฉ ุฑุงุจุท ุงู„ุงุบู†ูŠุฉ ุงูˆ ุงูŠ ุดูŠ ู…ู† ูŠูˆุชูŠูˆุจ ูˆู‡ูˆ ูŠุญู…ู„ุฉ ูˆูŠุฏุฒุฉ ุงู„ูƒ
Forwarded from Deleted Account
@Instasave_bot ุจูˆุช ุญู„ูˆูˆูˆ ุงูŠ ุดูŠ ุชุฑูŠุฏ ุชุญู…ู„ู‡ ู…ู† ุงู†ุณุชุบุฑุงู… ู…ุฌุฑุฏ ุชุฏุฒู„ุฉ ุงู„ุฑุงุจุท ูˆู‡ูˆ ูŠุญู…ู„ู‡ ูˆูŠุฏุฒุฉ ุงู„ูƒ
๐Ÿ™ƒุงูƒู…ู„ ุน ู„ูˆุง ุŸุŸ
ุงูƒู…ู„ ๐Ÿ’ ๐ŸŒฟ ุน ู„ูˆุง ุชู…ุงู…
๐Ÿ“šCreate ๐Ÿ†• Programmer๐Ÿ”ยฉ
Lua: ุงู„ู…ุชุบูŠุฑุงุช - Variables ๐Ÿ’ ๐Ÿ’“ โˆโ”โ”โ”โ” โ†ฃ๐Ÿ”†โ†ค โ”โ”โ”โ”โˆ ุงู„ู…ุชุบูŠุฑุงุช ุจุจุณุงุทุฉ ูŠู…ูƒู† ุฃู† ู†ุนุฑู ุงู„ู…ุชุบูŠุฑุงุช ููŠ ู„ูˆุง ุนู„ู‰ ุฃู†ู‡ุง ุฃู…ุงูƒู† ู„ุญูุธ ุงู„ู‚ูŠู…. ู‡ู†ุงูƒ ุซู„ุงุซุฉ ุฃู†ูˆุงุน ู…ู† ุงู„ู…ุชุบูŠุฑุงุช: ุนุงู„ู…ูŠุฉ ุงู„ู…ุฌุงู„ุŒ ู…ุญู„ูŠุฉ ุงู„ู…ุฌุงู„ุŒ ูˆุญู‚ูˆู„ ู…ุฌุฏูˆู„ุฉ (global, local & table fields). ุฃูŠ ู…ุชุบูŠุฑ ุบูŠุฑ ู…ุนุฑู‘ู ู…ุณุจู‚ุงู‹ ูู‡ูˆโ€ฆ
Lua: ูƒุชุงุจุฉ ุงู„ู…ุชุบูŠุฑุงุช ุงู„ุฏูŠู†ุงู…ูƒูŠุฉ - Dynamic typing of variables ๐ŸŒโšœ

โˆโ”โ”โ”โ” โ†ฃ๐Ÿ”†โ†ค โ”โ”โ”โ”โˆ
ุจู…ุง ู„ุงุญุธุชู… ุฃู†ู‡ ููŠ ุญูŠู† ุฃู† ู†ุฎู„ู‚ ุงู„ู…ุชุบูŠุฑุงุช ุฃุนู„ุงู‡ ุŒ ู„ู… ูŠูƒู† ู„ุฏูŠู†ุง ู…ุง ูŠุดูŠุฑ ุฅู„ู‰ ู†ูˆุน ู…ู† ู…ุชุบูŠุฑ ุฎู„ู‚ู†ุง. ุนู„ู‰ ุณุจูŠู„ ุงู„ู…ุซุงู„ ุŒ
a = 1
b = "hello"
c = { item1="abc" }
ุจู„ุบุงุช ุฃุฎุฑู‰ ู…ุซู„ c ุŒ ูˆูŠุฌุจ ุนู„ูŠู†ุง ุฃู† ุชุดูŠุฑ ุฅู„ู‰ ู†ูˆุน ู…ุชุบูŠุฑ ุนู†ุฏู…ุง ู†ู‚ูˆู… ุจุฅู†ุดุงุฆู‡. ูˆูƒู…ุง ุฃู†ู†ุง ู„ุณู†ุง ููŠ ุญุงุฌุฉ ู„ุชุญุฏูŠุฏ ู†ูˆุน ู…ุชุบูŠุฑ ู…ุนูŠู† ูŠู…ูƒู† ุฃูŠุถุง ุชุนูŠูŠู† ู‚ูŠู…ุฉ ู…ุฎุชู„ูุฉ ู„ู†ูุณ ุงู„ู…ุชุบูŠุฑ ุŒ ุนู„ู‰ ุณุจูŠู„ ุงู„ู…ุซุงู„.
a = 1
a = "hello"
a = { item1="abc" }

ูˆู‡ุฐุง ู…ุง ูŠุณู…ู‰ ุงู„ุทุจุงุนุฉ ุงู„ุฏูŠู†ุงู…ูƒูŠุฉ. ูˆู‡ุฐุง ูŠุนู†ูŠ ุฃู†ูƒ ู„ู… ุชุญุฏุฏ ู…ุง ู‡ูˆ ู†ูˆุน ู…ุชุบูŠุฑ. ุงู„ู…ุชุบูŠุฑ ูŠุนุฑู ู†ูˆุนู‡ุง ุงุนุชู…ุงุฏุง ุนู„ู‰ ู‚ูŠู…ุฉ ุฃูˆ ุงู„ูƒุงุฆู† ุงู„ุฐูŠ ุชู… ุชุนูŠูŠู†.


โˆโ”โ”โ”โ” โ†ฃ๐Ÿ”†โ†ค โ”โ”โ”โ”โˆ

Bot-telegram|๐Ÿ’—| @progfemo96||@progfemo96_bot
Lua: Values at zero _ุงู„ู‚ูŠู… ุนู†ุฏ ู…ุณุชูˆู‰ ุงู„ุตูุฑ๐ŸŒโšœ

โˆโ”โ”โ”โ” โ†ฃ๐Ÿ”†โ†ค โ”โ”โ”โ”โˆ
ู‡ุฐู‡ ู‡ูŠ ู‚ูŠู…ุฉ ุฎุงุตุฉ ู…ู…ุง ูŠุนู†ูŠ ุฃู† ุงู„ู…ุชุบูŠุฑ ู„ุง ู‚ูŠู…ุฉ ู„ู‡ ุฅุฐุง ุชู… ุชุนูŠูŠู† ู…ุชุบูŠุฑ ุฅู„ู‰ ุดูŠุก ู„ูŠุณ ู„ู‡ ู‚ูŠู…ุฉ ุงู„ู…ุนูŠู†ุฉ (nil ) ุŒ ูˆุจุงู„ุชุงู„ูŠ ูุฅู†ู‡ ู„ุง ุชูˆุฌุฏ ุจุนุฏ. ุนู† ุทุฑูŠู‚ ูˆุถุน ู…ุชุบูŠุฑ ู„ุง ุดูŠุก(nil ) ูŠู…ูƒู†ูƒ ุฅุฒุงู„ุฉ ู…ุชุบูŠุฑ ุนู„ู‰ ุณุจูŠู„ ุงู„ู…ุซุงู„.
This is a special value which means that a variable has no value. If a variable is set to nil it has no assigned value and therefore it does not exist yet. By placing a variable nil you can remove a variable for example.

> x = 2.5
> print(x)
2.5
> x = nil
> print(x)
nil
ูŠู…ูƒู†ูƒ ุงู„ุชุญู‚ู‚ ู…ู† ุฃู† ู…ุชุบูŠุฑ ู…ูˆุฌูˆุฏ ุจู…ู‚ุงุฑู†ุฉ ู‚ูŠู…ุชู‡ nil
> print(x == nil)
true
> x = 7
> print(x == nil)
false
> print(x)
7


โˆโ”โ”โ”โ” โ†ฃ๐Ÿ”†โ†ค โ”โ”โ”โ”โˆ

Bot-telegram|๐Ÿ’—| @progfemo96||@progfemo96_bot
Lua : Get the type โ€“ุงู„ุญุตูˆู„ ุนู„ู‰ ุงู„ู†ูˆุน ๐ŸŒโšœ

โˆโ”โ”โ”โ” โ†ฃ๐Ÿ”†โ†ค โ”โ”โ”โ”โˆ
ูƒู†ุง ู„ูˆุง ู‡ูŠ ู„ุบุฉ ูƒู…ุง ุชุนูƒุณ ุŒ () function type ู„ู„ุญุตูˆู„ ุนู„ู‰ ู†ูˆุน ู…ู† ู…ุชุบูŠุฑ ู…ุนูŠู†.
LUA is a language as reflective, we used the function type () to get the type of a particular variable.

> x = "123" โ€” a string ุณู„ุณู„ุฉ
> print(x, type(x)) โ€” displays the value of x and its typeูˆู†ูˆุนู‡ุง x ูŠุนุฑุถ ู‚ูŠู…ุฉ
123 string
> x = x + 7 โ€” adds a number to the string and its typing force (coercion) ูŠุถูŠู ุนุฏุฏุง ุฅู„ู‰ ุงู„ุณู„ุณู„ุฉ ูˆู‚ูˆุชู‡ุง ูƒุชุงุจุฉ
> print(x, type(x)) โ€” again show the value and type
130 number




โˆโ”โ”โ”โ” โ†ฃ๐Ÿ”†โ†ค โ”โ”โ”โ”โˆ

Bot-telegram|๐Ÿ’—| @progfemo96 ||@progfemo96_bot
Forwarded from Deleted Account
@S3MBOLbot ุจูˆุช ูŠุฒุฎุฑู ุงู„ุงุณู… ูˆุจุฃูŠ ู„ุบุฉ ุญู„ูˆ