Skip to content

bit.bor ​

Signature ​

lua
bit.bor(int a, int b) -> int

Description ​

Returns the bitwise OR of a and b.

Parameters ​

  • a int
  • b int

Returns ​

  • int

Source ​

  • Utilities/utility.lua:18

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 54 indexed script(s).
  • Search this function in the Script Explorer with bit.bor.
CardIDScriptDetected Calls
Mecha Phantom Beast Auroradon44097050Scripts/c44097050.lua3
Link into the VRAINS!28827503Scripts/c28827503.lua1
Genex Ally Triforce52709508Scripts/c52709508.lua1
Hyperinvoked Aeon33166263Scripts/c33166263.lua1
Genex Ally Triarm17760003Scripts/c17760003.lua1
Metaltron XII, the True Dracombatant57761191Scripts/c57761191.lua1
Darklord Uprising54527349Scripts/c54527349.lua1
Mekk-Knight Purple Nightfall28692962Scripts/c28692962.lua2
Chaofeng, Phantom of the Yang Zing19048328Scripts/c19048328.lua2
Groza, Tyrant of Thunder45420955Scripts/c45420955.lua3
Folgo, Justice Fur Hire66023650Scripts/c66023650.lua1
Clown Crew Matinee Operatics57847269Scripts/c57847269.lua1
Chaos Angel22850702Scripts/c22850702.lua1
Distrust Paranoia81965543Scripts/c81965543.lua1
Tindangle Base Gardna94365540Scripts/c94365540.lua1
Master Peace, the True Dracoslaying King21377582Scripts/c21377582.lua1
Angelechy Enlisted81797573Scripts/c81797573.lua4
Metaphys Horus36898537Scripts/c36898537.lua1
Elementsaber Lapauila Mana71797713Scripts/c71797713.lua3
Mekk-Knight Red Moon56809158Scripts/c56809158.lua2
Mekk-Knight Blue Sky20537097Scripts/c20537097.lua2
Ancient Gear Reactor Dragon44874522Scripts/c44874522.lua2
Mekk-Knight Green Horizon66022706Scripts/c66022706.lua2
Rokket Caliber67127799Scripts/c67127799.lua1
...and 30 more

Script Examples ​

Mecha Phantom Beast Auroradon (44097050) ​

Source: Scripts/c44097050.lua

lua
	if sel==1 then
		local dg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
		e:SetCategory(bit.bor(cat,CATEGORY_DESTROY))
		Duel.SetOperationInfo(0,CATEGORY_DESTROY,dg,1,0,0)
	elseif sel==2 then

Source: Scripts/c28827503.lua

lua
		local tc=g:GetFirst()
		while tc do
			race=bit.bor(race,tc:GetOriginalRace())
			tc=g:GetNext()
		end

Genex Ally Triforce (52709508) ​

Source: Scripts/c52709508.lua

lua
	while tc do
		if not tc:IsType(TYPE_TUNER) then
			att=bit.bor(att,tc:GetAttribute())
		end
		tc=g:GetNext()