Basic
StableNumbers, text, dates, arrays, random values, processes, and value nodes such as Number and Text
614 nodes in 16 categories
- Ships with
- Divooka ExploreDivooka Compute
- Support tier
- Tier 1 (proposed)
- Package
- Standard Library Foundation Primitives
Standard Library
Numbers, text, dates, arrays, lists, dictionaries, sets and conversions - what nearly every graph needs.
Date Time Routines
AddAdds a duration to a DateTime.Add DaysMoves a date and time forward or back by a number of days, which may be fractional (0.5 is twelve hours).Add HoursMoves a date and time forward or back by a number of hours, which may be fractional.Add MicrosecondsMoves a date and time forward or back by a number of microseconds, which may be fractional.Add MillisecondsMoves a date and time forward or back by a number of milliseconds, which may be fractional.Add MinutesMoves a date and time forward or back by a number of minutes, which may be fractional.Add MonthsMoves a date and time forward or back by whole calendar months, keeping the time of day.Add SecondsMoves a date and time forward or back by a number of seconds, which may be fractional.Add TicksMoves a date and time forward or back by a number of ticks, where one tick is 100 nanoseconds.Add YearsMoves a date and time forward or back by whole calendar years, keeping the month, day and time of day.CompareCompares two DateTime values.CreateCreates a DateTime from ticks.Create Date OnlyCreates a DateOnly from year, month and day.Create Time OnlyCreates a TimeOnly from hour and minute.Create Time SpanCreates a TimeSpan from ticks.DateGets the date component of a DateTime.Date Only From Date TimeTakes the calendar date of a System.DateTime and drops its time of day.Date Only From Day NumberCreates a System.DateOnly from a day number, the count of days since 0001-01-01 in the Gregorian calendar.DayGets the day of the month of a date and time.Day NumberGets a date as a single day number, the count of days since 0001-01-01; subtracting two day numbers gives the days between them.Day Of WeekGets the weekday of a date and time.Day Of YearGets how far into its year a date and time falls, counted in days.DaysGets the day component of a TimeSpan.Days BetweenCounts the calendar days from one date to another.Days In MonthGives the number of days in a month of a given year in the Gregorian calendar, taking leap years into account.DeconstructDeconstructs a DateTime into year, month and day.DivideDivides a duration by a number, for example to split it into equal parts.DurationGives the absolute length of a duration, dropping its sign.EqualsChecks whether two date and time values are the same.From BinaryRestores a date and time, including its kind, from a number made by DateTimeRoutines.ToBinary.From Date Only Time OnlyCombines DateOnly and TimeOnly into a DateTime.From File TimeConverts a Windows file time to a date and time in this computer's local time zone.From File Time UtcConverts a Windows file time to a UTC date and time.From OA DateConverts an OLE Automation date, the number format Excel and other Office applications use for dates, to a date and time.From Unix Time MillisecondsConverts a Unix timestamp in milliseconds, as used by JavaScript and many web APIs, back to a UTC date and time.From Unix Time SecondsConverts a Unix timestamp in seconds back to a UTC date and time.Date Only Max ValueGets the largest possible value of System.DateOnly.Date Only Min ValueGets the smallest possible value of System.DateOnly.Max ValueGets the largest possible value of System.DateTime.Min ValueGets the smallest possible value of System.DateTime.Nanoseconds Per TickGets the number of nanoseconds in one tick.NowGets the current local date and time.Ticks Per DayGets the number of ticks in one day.Ticks Per HourGets the number of ticks in one hour.Ticks Per MicrosecondGets the number of ticks in one microsecond.Ticks Per MillisecondGets the number of ticks in one millisecond.Ticks Per MinuteGets the number of ticks in one minute.Ticks Per SecondGets the number of ticks in one second.Time Only Max ValueGets the largest possible value of System.TimeOnly.Time Only Min ValueGets the smallest possible value of System.TimeOnly.Time Span Max ValueGets the largest possible value of System.TimeSpan.Time Span Min ValueGets the smallest possible value of System.TimeSpan.Time Span ZeroGets a zero-length System.TimeSpan.TodayGets the current local date with the time set to midnight.Unix EpochGets the Unix epoch date and time: 1970-01-01 00:00:00 UTC.Utc NowGets the current UTC date and time.Get Date Time FormatsWrites a date and time in every standard format of the current culture, useful for seeing which format to pick.Greater ThanChecks whether one date and time is later than another.Greater Than Or EqualChecks whether one date and time is later than or the same as another.HourGets the hour of a date and time on the 24-hour clock.HoursGets the hours part of a duration, what is left after whole days are taken out; use DateTimeRoutines.TotalHours for the whole duration in hours.Is BetweenChecks whether a time of day falls within a range, including ranges that cross midnight such as 22:00 to 06:00.Is Daylight Saving TimeChecks whether a date and time falls within daylight saving time in this computer's local time zone.Is Leap YearReturns whether the given year is a leap year.KindTells whether a date and time is marked as local time, UTC, or unspecified.Less ThanChecks whether one date and time is earlier than another.Less Than Or EqualChecks whether one date and time is earlier than or the same as another.MicrosecondGets the microsecond part of a date and time.MicrosecondsGets the microseconds part of a duration, what is left after whole milliseconds are taken out; use DateTimeRoutines.TotalMicroseconds for the whole duration in microseconds.MillisecondGets the millisecond part of a date and time.MillisecondsGets the milliseconds part of a duration, what is left after whole seconds are taken out; use DateTimeRoutines.TotalMilliseconds for the whole duration in milliseconds.MinuteGets the minute of a date and time.MinutesGets the minutes part of a duration, what is left after whole hours are taken out; use DateTimeRoutines.TotalMinutes for the whole duration in minutes.MonthGets the month of a date and time.MultiplyScales a duration by a factor, for example to get three times or half of it.NanosecondGets the nanosecond part of a date and time.NanosecondsGets the nanoseconds part of a duration, what is left after whole microseconds are taken out.NegateFlips the sign of a duration, so 5 minutes becomes -5 minutes and the reverse.Not EqualsChecks whether two date and time values differ.ParseParses a string into a DateTime.Parse Date OnlyParses a string into a DateOnly.Parse ExactReads a date and time from text that must match one exact format, such as "yyyy-MM-dd HH:mm:ss".Parse Exact Date OnlyReads a date from text that must match one exact format, such as "yyyy-MM-dd".Parse Exact Time OnlyReads a time of day from text that must match one exact format, such as "HH:mm:ss".Parse Exact Time SpanReads a duration from text that must match one exact format, such as "c" or a custom pattern like @"hh\:mm".Parse Time OnlyParses a string into a TimeOnly.Parse Time SpanParses a string into a TimeSpan.SecondGets the second of a date and time.SecondsGets the seconds part of a duration, what is left after whole minutes are taken out; use DateTimeRoutines.TotalSeconds for the whole duration in seconds.Specify KindCreates a new System.DateTime value with the same ticks as the specified value, but with the specified System.DateTimeKind.SubtractMeasures the time elapsed from one date and time to another.TicksGets a date and time as a single number of ticks, useful for storing it or doing exact arithmetic.Time BetweenMeasures the time from one date to another as a System.TimeSpan of whole days.Time Of DayGets the time of day of a date and time as the duration since midnight.Time Only From Date TimeTakes the time of day of a System.DateTime and drops its date.Time Only From TicksCreates a System.TimeOnly time of day from the number of ticks since midnight.Time Only From Time SpanTurns a duration since midnight into a System.TimeOnly time of day, for example 13 hours into 13:00.Time Span From DaysCreates a System.TimeSpan duration from a number of days, which may be fractional or negative (1.5 is a day and a half).Time Span From HoursCreates a System.TimeSpan duration from a number of hours, which may be fractional or negative.Time Span From MicrosecondsCreates a System.TimeSpan duration from a number of microseconds, which may be fractional or negative.Time Span From MillisecondsCreates a System.TimeSpan duration from a number of milliseconds, which may be fractional or negative.Time Span From MinutesCreates a System.TimeSpan duration from a number of minutes, which may be fractional or negative.Time Span From SecondsCreates a System.TimeSpan duration from a number of seconds, which may be fractional or negative.Time Span From TicksCreates a System.TimeSpan duration from a number of ticks, where one tick is 100 nanoseconds.Time Span To Time OnlyTurns a duration since midnight into a System.TimeOnly time of day, for example 13 hours into 13:00.To BinaryPacks a date and time, including its kind, into one 64-bit number for storage; DateTimeRoutines.FromBinary turns it back.To Date OnlyTakes the calendar date of a System.DateTime and drops its time of day.To Date TimeCombines a System.DateOnly date and a System.TimeOnly time of day into one System.DateTime.To File TimeConverts a date and time to a Windows file time: the number of 100-nanosecond intervals since 1601-01-01 00:00:00 UTC.To File Time UtcConverts a date and time to a Windows file time, treating an unspecified value as already being UTC.To Local TimeConverts the specified System.DateTime value to local time.To Long Date StringWrites the date of a date and time in the current culture's long date pattern, such as Saturday, June 15, 2024 in US English.To Long Time StringWrites the time of a date and time in the current culture's long time pattern, usually hours, minutes and seconds.To OA DateConverts a date and time to an OLE Automation date, the number format Excel and other Office applications use for dates.To Short Date StringWrites the date of a date and time in the current culture's short date pattern, such as 6/15/2024 in US English.To Short Time StringWrites the time of a date and time in the current culture's short time pattern, usually hours and minutes.To StringWrites a date and time as text the one way Divooka writes it, whatever region the machine is set to: 2026-01-02 14:30:00, with its fraction of a second where it has one and Z or its offset where it is UTC or local time.Total DaysGets the whole length of a duration in days, including the fraction (36 hours is 1.5).Total HoursGets the whole length of a duration in hours, including the fraction (90 minutes is 1.5).Total MicrosecondsGets the whole length of a duration in microseconds, including the fraction.Total MillisecondsGets the whole length of a duration in milliseconds, including the fraction.Total MinutesGets the whole length of a duration in minutes, including the fraction.Total NanosecondsGets the whole length of a duration in nanoseconds.Total SecondsGets the whole length of a duration in seconds, including the fraction.To Time OnlyTakes the time of day of a System.DateTime and drops its date.To Time SpanTurns a System.TimeOnly time of day into the duration since midnight, for example 13:30 into 13 hours 30 minutes.To Universal TimeConverts the specified System.DateTime value to Coordinated Universal Time (UTC).To Unix Time MillisecondsConverts a date and time to a Unix timestamp in milliseconds: the whole milliseconds elapsed since 1970-01-01 00:00:00 UTC, as used by JavaScript and many web APIs.To Unix Time SecondsConverts a date and time to a Unix timestamp: the whole seconds elapsed since 1970-01-01 00:00:00 UTC.Try ParseTries to read a date and time from text in the invariant culture - the same on every machine - reporting failure instead of throwing.Try Parse Date OnlyTries to read a date from text in the invariant culture - the same on every machine - reporting failure instead of throwing.Try Parse ExactTries to read a date and time from text that must match one exact format, reporting failure instead of throwing.Try Parse Exact Date OnlyTries to read a date from text that must match one exact format, reporting failure instead of throwing.Try Parse Exact Time OnlyTries to read a time of day from text that must match one exact format, reporting failure instead of throwing.Try Parse Exact Time SpanTries to read a duration from text that must match one exact format, reporting failure instead of throwing.Try Parse Time OnlyTries to read a time of day from text in the invariant culture - the same on every machine - reporting failure instead of throwing.Try Parse Time SpanTries to read a duration in the form [-][d.]hh:mm[:ss[.fffffff]] from text in the invariant culture - the same on every machine - reporting failure instead of throwing.YearGets the year of a date and time.
Number Routines
Atomic Mass UnitAtomic mass constant (kg)AvogadroAvogadro's number (1/mol)Boltzmann ConstantBoltzmann constant (J/K)Coulomb ConstantCoulomb constant (N·m^2/C^2)Euler's NumberEuler's number (e).Electron MassElectron mass (kg)Elementary ChargeElementary charge (C)FaradayFaraday constant (C/mol)Gas ConstantUniversal gas constant (J/(mol·K))Gravitational ConstantGravitational constant (m^3·kg^-1·s^-2)Neutron MassNeutron mass (kg)PiArchimedes' constant (π).Planck ConstantPlanck constant (J·s)Proton MassProton mass (kg)Reduced Planck ConstantReduced Planck constant (J·s)RydbergRydberg constant (1/m)Speed Of LightSpeed of light in vacuum (m/s)Standard AtmosphereStandard atmospheric pressure (Pa)Standard GravityStandard acceleration due to gravity on Earth (m/s^2)Stefan BoltzmannStefan–Boltzmann constant (W·m^-2·K^-4)TauTau (τ = 2π).Vacuum PermeabilityVacuum permeability (N/A^2)Vacuum PermittivityVacuum permittivity (F/m)Wien DisplacementWien displacement constant (m·K)Absolute ValueReturns the absolute value of a double-precision floating-point number.AcosReturns the angle whose cosine is the specified number.AcoshReturns the angle whose hyperbolic cosine is the specified number.Acres To Square MetersConverts acres to square meters by multiplying by 4,046.8564224, the international acre.AddAdds two numbers and returns the sum.AsinReturns the angle whose sine is the specified number.AsinhReturns the angle whose hyperbolic sine is the specified number.AtanReturns the angle whose tangent is the specified number.Atan2Returns the angle whose tangent is the quotient of two specified numbers.AtanhReturns the angle whose hyperbolic tangent is the specified number.Atm To PascalsConverts standard atmospheres to pascals by multiplying by 101,325, the exact standard atmosphere.Bar To PascalsConverts bar to pascals by multiplying by 100,000.Bigger ThanDetermines whether the first double is greater than the second double.Bigger Than Or EqualDetermines whether the first double is greater than or equal to the second double.Bit DecrementReturns the largest value that compares less than a specified value.Bit IncrementReturns the smallest value that compares greater than a specified value.Calories To JoulesConverts calories to joules by multiplying by 4.184, the thermochemical calorie.CeilingReturns the smallest integral value that is greater than or equal to the specified double-precision floating-point number.Celsius To FahrenheitConverts degrees Celsius to degrees Fahrenheit by the formula °F = °C × 9/5 + 32.Celsius To KelvinConverts degrees Celsius to kelvins by adding 273.15.Centimeters To MetersConverts centimeters to meters by dividing by 100.ClampReturns value clamped to the inclusive range of min and max.Clamp01Limits a number to the range 0 to 1, replacing anything below 0 with 0 and anything above 1 with 1.Clamp To Byte SizeRound and clamp by absolute value to byte value range.Clamp To U Short SizeClamp ushort-value floats.Compute PiComputes PI to arbitrary accuracy (digits after decimal point).Copy SignReturns a value with the magnitude of x and the sign of y.CosReturns the cosine of the specified angle.CoshReturns the hyperbolic cosine of the specified angle.Cube RootReturns the cube root of a specified number.Cubic Meters To LitersConverts cubic meters to liters by multiplying by 1,000.Degrees To RadiansConverts degrees to radians by multiplying by π/180.DivideDivides the first number by the second and returns the quotient.Electron Volts To JoulesConverts electronvolts to joules by multiplying by the elementary charge, 1.602176634e-19 (exact since the 2019 SI redefinition).Equal ToDetermines whether the first double is equal to the second double.ExpReturns e raised to the specified power.Fahrenheit To CelsiusConverts degrees Fahrenheit to degrees Celsius by the formula °C = (°F − 32) × 5/9.Feet To MetersConverts feet to meters by multiplying by 0.3048, the exact international foot.FloorReturns the largest integral value less than or equal to the specified double-precision floating-point number.FracGives the fractional part of a number measured up from the next whole number below it, always from 0 to 1, so 2.75 gives 0.75 and -0.25 gives 0.75 (not -0.25).Fused Multiply AddReturns (x * y) + z, rounded as one ternary operation.Gallons To LitersConverts gallons to liters by multiplying by 3.785411784, the exact US liquid gallon.Grams To KilogramsConverts grams to kilograms by dividing by 1,000.Hertz To KilohertzConverts hertz to kilohertz by dividing by 1,000.Horsepower To WattsConverts horsepower to watts by multiplying by 745.699872, the mechanical (imperial) horsepower.Hours To SecondsConverts hours to seconds by multiplying by 3,600.IEEE RemainderReturns the remainder resulting from the division of a specified number by another specified number.I Log BReturns the base 2 integer logarithm of a specified number.Inches To MetersConverts inches to meters by multiplying by 0.0254, the exact international inch.InterpLinear interpolation.Is FiniteTells whether a number is an ordinary finite value, as opposed to NaN (not a number) or positive or negative infinity, for example to catch the result of dividing by zero before it spreads.Joules To CaloriesConverts joules to calories by dividing by 4.184, the thermochemical calorie.Joules To Electron VoltsConverts joules to electronvolts by dividing by the elementary charge, 1.602176634e-19 (exact since the 2019 SI redefinition).Joules To KilojoulesConverts joules to kilojoules by dividing by 1,000.Kelvin To CelsiusConverts kelvins to degrees Celsius by subtracting 273.15.Kilograms To GramsConverts kilograms to grams by multiplying by 1,000.Kilograms To PoundsConverts kilograms to pounds by dividing by 0.45359237, the exact avoirdupois pound.Kilohertz To HertzConverts kilohertz to hertz by multiplying by 1,000.Kilojoules To JoulesConverts kilojoules to joules by multiplying by 1,000.Kilometers To MetersConverts kilometers to meters by multiplying by 1,000.Kilometers To MilesConverts kilometers to miles by dividing by 1.609344, the exact international (statute) mile.Kilopascals To PascalsConverts kilopascals to pascals by multiplying by 1,000.Kilowatts To WattsConverts kilowatts to watts by multiplying by 1,000.Km Per Hour To Meters Per SecondConverts kilometers per hour to meters per second by dividing by 3.6.LerpBlends linearly from A to B: a T of 0 gives A, 1 gives B, and 0.5 gives the midpoint.Lerp01Blends between two byte values, such as two color channels, by a factor from 0 to 1: 0 gives A, 1 gives B.Liters To Cubic MetersConverts liters to cubic meters by dividing by 1,000.Liters To GallonsConverts liters to gallons by dividing by 3.785411784, the exact US liquid gallon.Liters To MillilitersConverts liters to milliliters by multiplying by 1,000.LogReturns the natural (base e) logarithm of a specified number.Log10Returns the base 10 logarithm of a specified number.Log2Returns the base 2 logarithm of a specified number.MaxReturns the larger of two double-precision floating-point numbers.Max MagnitudeReturns the larger magnitude of two double-precision floating-point numbers.Meters Per Second To Km Per HourConverts meters per second to kilometers per hour by multiplying by 3.6.Meters Per Second To Miles Per HourConverts meters per second to miles per hour by dividing by 0.44704.Meters To CentimetersConverts meters to centimeters by multiplying by 100.Meters To FeetConverts meters to feet by dividing by 0.3048, the exact international foot.Meters To InchesConverts meters to inches by dividing by 0.0254, the exact international inch.Meters To KilometersConverts meters to kilometers by dividing by 1,000.Meters To MillimetersConverts meters to millimeters by multiplying by 1,000.Miles Per Hour To Meters Per SecondConverts miles per hour to meters per second by multiplying by 0.44704.Miles To KilometersConverts miles to kilometers by multiplying by 1.609344, the exact international (statute) mile.Milliliters To LitersConverts milliliters to liters by dividing by 1,000.Millimeters To MetersConverts millimeters to meters by dividing by 1,000.MinReturns the smaller of two double-precision floating-point numbers.Min MagnitudeReturns the smaller magnitude of two double-precision floating-point numbers.Minutes To SecondsConverts minutes to seconds by multiplying by 60.ModMod and wrap around to be always positive.ModulusReturns the remainder of division of one number by another.MultiplyMultiplies two numbers and returns the product.Nearly EqualTells whether two numbers are equal apart from a tiny rounding error, which is the right test for results of floating-point arithmetic where exact equality usually fails (0.1 + 0.2 is not exactly 0.3).NegateFlips the sign of a number, turning positive into negative and negative into positive.Newtons To Pound ForceConverts newtons to pounds-force by dividing by 4.4482216152605, the exact pound-force.Not EqualDetermines whether the first double is not equal to the second double.Pascals To AtmConverts pascals to standard atmospheres by dividing by 101,325, the exact standard atmosphere.Pascals To BarConverts pascals to bar by dividing by 100,000.Pascals To KilopascalsConverts pascals to kilopascals by dividing by 1,000.Pound Force To NewtonsConverts pounds-force to newtons by multiplying by 4.4482216152605, the exact pound-force.Pounds To KilogramsConverts pounds to kilograms by multiplying by 0.45359237, the exact avoirdupois pound.PowerRaises a base number to the specified exponent.Radians To DegreesConverts radians to degrees by multiplying by 180/π.Rand2Random number generator taking two seeds; rand2(p,q) = rand2(q,p) is importantReciprocal EstimateReturns an estimate of the reciprocal of a specified number.Reciprocal Sqrt EstimateReturns an estimate of the reciprocal square root of a specified number.Repeat01Repeats a number over the range 0 (inclusive) to 1 (exclusive), so 1.25 gives 0.25 and -0.25 gives 0.75; this gives the same result as NumberRoutines.Wrap01.RootReturns the specified root of a given number.RoundRounds a double-precision floating-point value to the nearest integral value, and rounds midpoint values to the nearest even number.Scale BReturns x * 2^n computed efficiently.Seconds To HoursConverts seconds to hours by dividing by 3,600.Seconds To MinutesConverts seconds to minutes by dividing by 60.SignReturns an integer that indicates the sign of a double-precision floating-point number.SinReturns the sine of the specified angle.Sin CosReturns the sine and cosine of the specified angle.Sin DegreesReturns the sine of the specified angle.SinhReturns the hyperbolic sine of the specified angle.Smaller ThanDetermines whether the first double is less than the second double.Smaller Than Or EqualDetermines whether the first double is less than or equal to the second double.Smoother StepEases a value between 0 and 1 along Ken Perlin's smootherstep curve (6t⁵ − 15t⁴ + 10t³), which is flatter at both ends than smoothstep because its curvature is also zero there; preferred for noise and for motion that should not visibly jerk at the start or end.Smooth StepGives 0 below Edge0, 1 above Edge1, and an S-shaped smooth transition in between, as the smoothstep function of shading languages does; use it to fade something in over a range of values.Smooth Step01Eases a value between 0 and 1 along an S-shaped curve that starts and ends flat (3x² − 2x³), for smooth fades and transitions without the abrupt start and stop of a straight line.Smooth Step RangeSquare Kilometers To Square MetersConverts square kilometers to square meters by multiplying by 1,000,000.Square Meters To AcresConverts square meters to acres by dividing by 4,046.8564224, the international acre.Square Meters To Square KilometersConverts square meters to square kilometers by dividing by 1,000,000.Square RootReturns the square root of a specified number.SubtractSubtracts the second number from the first and returns the result.TanReturns the tangent of the specified angle.TanhReturns the hyperbolic tangent of the specified angle.To Byte01Converts a normalized value from 0 to 1, such as a color channel, to a byte from 0 to 255, clamping values outside the range first.To DegreesConverts an angle from radians to degrees (multiplying by 180/π) in single precision.To RadiansConverts an angle from degrees to radians (multiplying by π/180) in single precision, for passing degree angles to trigonometry that works in radians.TruncateCalculates the integral part of a specified double-precision floating-point number.Watts To HorsepowerConverts watts to horsepower by dividing by 745.699872, the mechanical (imperial) horsepower.Watts To KilowattsConverts watts to kilowatts by dividing by 1,000.WrapWraps a coordinate into the range 0 (inclusive) to Size (exclusive), so a position that runs off one side of a tiling image or grid comes back in from the other.Wrap01Wraps a number into the range 0 (inclusive) to 1 (exclusive) by keeping only its position within a unit cycle, so 1.25 gives 0.25 and -0.25 gives 0.75; useful for repeating patterns, looping animation time and hue.
3D Vector
Negative InfinityOnePositive InfinitySize In BytesUnit XUnit YUnit ZXYZZeroMake 3D VectorAbsCeilingDeconstructEqualsFloorGet ItemGet LengthGet Length FastGet Length SquaredGet Reciprocal Length FastGet XyGet XzGet XzyGet YxGet YxzGet YzGet YzxGet ZxGet ZxyGet ZyGet ZyxGet Hash CodeNormalizeNormalizedNormalize FastRoundSet ItemSet XySet XzSet XzySet YxSet YxzSet YzSet YzxSet ZxSet ZxySet ZySet ZyxTo StringTruncateAddBary CentricCalculate AngleClampComponent EqualComponent MaxComponent MinComponent Not EqualCrossDistanceDistance SquaredDivideDotElerpGreater ThanGreater Than Or EqualLerpLess ThanLess Than Or EqualMagnitude MaxMagnitude MinMultiplyOp AdditionOp DivisionOp EqualityOp ExplicitOp Greater ThanOp Greater Than Or EqualMake 3D VectorOp InequalityOp Less ThanOp Less Than Or EqualOp MultiplyOp SubtractionOp Unary NegationSlerpSubtractTransformTransform ColumnTransform NormalTransform Normal InverseTransform PerspectiveTransform PositionTransform RowTransform Vector
Text Routines
AmpersandA constant for ampersand symbol.AsteriskA constant for asterisk symbol.AtA constant for at symbol.BackslashA constant for backslash symbol.Carriage ReturnA constant for carriage return symbol.ColonA constant for colon symbol.CommaA constant for comma symbol.Comma SpaceA constant for comma and space symbols.DashA constant for dash symbol.Double QuoteA constant for double quote symbol.EmptyA constant for empty string.Equal SignA constant for equals symbol.Exclamation MarkA constant for exclamation mark symbol.HashA constant for hash symbol.Left BraceA constant for left curly brace symbol.Left BracketA constant for left square bracket symbol.Left ParenthesisA constant for left parenthesis symbol.New LineA constant for newline symbol.PeriodA constant for period symbol.PipeA constant for pipe symbol.Question MarkA constant for question mark symbol.Right BraceA constant for right curly brace symbol.Right BracketA constant for right square bracket symbol.Right ParenthesisA constant for right parenthesis symbol.SemicolonA constant for semicolon symbol.Single QuoteA constant for single quote symbol.SlashA constant for slash symbol.SpaceA constant for space symbol.TabA constant for tab symbol.UnderscoreA constant for underscore symbol.Windows New LineA constant for Windows-style newline symbol.CamelizeChar To Ascii ByteCompareCompare ToConcatAppend string values.ContainsChecks whether text exists.Convert To Boolean ArrayConvert To Integer ArrayConvert To Number ArrayConvert To Text ArrayConverts a multiline text to an array of strings.Copy ToEnds WithEqualsEscape CharacterGiven plain text representing a character literal, treat it as if it were a C# character literal.Escape TextGiven plain text (like that read from a file), treat it as if it were a C# literal.FormatFormats a string using a template string by replacing format placeholders with the specified values.Get CharacterGet Hash CodeHumanizeIndex OfIndex Of AnyInsertIs NormalizedIs Null Or EmptyIs Null Or White SpaceJoinJoin string values with separator.KebaberizeLast Index OfLast Index Of AnyLengthGet length of text.Lowercase First LetterNormalizePad LeftPad RightPascalizeRegular Expression ReplaceReplaces all occurrences of a specified regular expression pattern in the input string with a replacement string.RemoveReplaceReplaces matching text.Replace Line EndingsSplitSplits a string using a specified separator character.Split LinesSplits a string into an array using newline characters as separators, while trimming whitespace and removing empty entries.Starts WithSubstringExtracts part of the string.TitleizeTo Char ArrayTo LowerTo Lower InvariantTo UpperTo Upper InvariantTrimTrim EndTrim StartVariable Name To Readable String
Array Routines
As Read OnlyA read-only view of the array, for handing its contents on without letting the receiver change them.Binary SearchFinds a value in an array that is already sorted in ascending order, much faster than a front-to-back search on a large array.ClearResets every element of the array, in all dimensions, to its type's default: 0 for numbers, false for booleans, null for text and objects.CloneA new array of the same type, shape and contents, so the copy can be changed without affecting the original.Constrained CopyCopies a run of elements from one array into another all-or-nothing: if the copy cannot complete, the destination is left exactly as it was.Convert AllA new array made by passing each element through a converter, for turning an array of one type into another, such as numbers into labels.CopyCopies a run of elements from one position in an array to a position in another (or the same) array, converting element types where a widening or boxing conversion allows.Copy ToCopies every element of a one-dimensional array into another array, starting at a 64-bit position in the destination.Create InstanceA new array of any element type and dimension count, where each dimension can start at an index other than 0 (for example a grid indexed from 1).Create Instance From Array TypeA new array of the given array type (for example a number grid type), with the given size for each of its dimensions.Parse Comma Separated Boolean ArrayParse Comma Separated Number ArrayParse Comma Separated Text NamesDuplicate As ArrayEmptyAn array with no elements, for when a result has nothing in it; the same shared instance is returned every time, so it costs no allocation.ExistsWhether at least one element passes a test, for questions such as "is any value negative?".FillOverwrites a run of elements with one value, leaving the rest of the array as it was.FindThe first element, from the front, that passes a test.Find AllEvery element that passes a test, as a new array, for filtering an array down to the entries you want.Find IndexThe position of the first element passing a test within a section of the array, searching forwards.Find LastThe last element, searching from the back, that passes a test.Find Last IndexThe position of the last element that passes a test, searching from the back.FoldThe whole array folded into one value: starting from the seed, function(accumulated, element), left to right.For EachRuns an action once for each element, front to back, for side effects such as printing or accumulating.Get EnumeratorAn enumerator that walks every element of the array in order; a multidimensional array is walked with the last dimension changing fastest.Get LengthThe number of elements along one dimension, for example the number of rows (dimension 0) or columns (dimension 1) of a grid.Get Long LengthThe number of elements along one dimension, as a 64-bit number.Get Lower BoundThe first valid index along one dimension; 0 for ordinary arrays, other values only for arrays created with explicit lower bounds.Get Upper BoundThe last valid index along one dimension, inclusive; for an ordinary array this is that dimension's length minus 1, and -1 for an empty dimension.Get ValueReads the element at a position in a three-dimensional array, given as 64-bit indices.Index OfThe position of the first element equal to a value within a section of the array, searching forwards.InitializeRuns the element type's parameterless constructor on every element of an array of value types; for arrays of objects, numbers or other types without such a constructor it does nothing.Is Fixed SizeWhether the array's size is fixed; always true, since an array cannot grow or shrink in place (Resize makes a new array instead).Is Read OnlyWhether the array's elements can be changed; always false for an array, because every array's elements are writable (wrap it with As Read Only for a view that cannot be written through).Is SynchronizedWhether access to the array is thread-safe on its own; always false for an array, so lock on SyncRoot when several threads share one.Last Index OfThe position of the last element equal to a value within a section of a one-dimensional array of any element type that ends at a given index, searching backwards.LengthThe total number of elements across all dimensions of the array, so a 3 by 4 grid gives 12.Long LengthThe total number of elements across all dimensions of the array, as a 64-bit number; use it instead of Length when a count could exceed the 32-bit range.Make ArrayMake Boolean ArrayMake Number ArrayMake Text ArrayMapEach element through a function: the array that comes back is the results, in order.Max LengthThe largest number of elements any single array can hold on this runtime (2,147,483,591), useful as an upper limit when checking a requested size before allocating.RankThe number of dimensions of the array: 1 for a plain list of values, 2 for a grid, 3 for a volume.ReplicateA new array holding the same value in every slot, for when you need a run of identical entries such as a row of zeros or a default label repeated.ResizeChanges an array's length by replacing it with a new array of the new size that keeps the existing elements from the front.ReverseReverses the order of a run of elements in place, leaving the rest of the array as it was.Set ValueWrites a value into a two-dimensional array at a row and column given as 64-bit indices.SortSorts a run of elements in place using the given comparer, leaving the rest of the array as it was.Sync RootThe object to lock on when several threads share this array; for an ordinary array it is the array itself.True For AllWhether every element passes a test, for questions such as "are all values positive?".
Enum Routines
Add FlagSwitches on the bits of Flag in Value; for a flag enum, adds that option.FormatWrites an enum value as text in a chosen style: its name, its number in decimal or hexadecimal, or its flags spelled out by name.From ValueTurns a number into the enum value with that number, for example a value read from a file or a database column.Get Enum ValuesEvery value of an enum type chosen at run time, for when you only have the type as a value rather than as the node's type argument.Get NameThe declared name of Value, or empty text when no constant has that exact value (for example a combination of flags without a name of its own).Get NamesThe names of every constant the enum declares, for example to fill a drop-down list.Get Underlying TypeThe integer type an enum stores its values in, which is System.Int32 unless the enum declares otherwise.Get Value ListEvery value the enum declares, as a read-only list; the same values in the same order as EnumRoutines.GetValues.Get ValuesEvery value the enum declares, for example to go through all the choices one by one.Has FlagWhether every bit set in Flag is also set in Value; for a flag enum, whether the value includes that option (or all of several combined options).Is DefinedWhether Value is exactly one of the enum's named constants; use it to reject numbers that were cast or converted into the enum without matching any choice.Is ZeroWhether Value has no bits set at all; for a flag enum, whether no option is chosen.ParseTurns text into an enum value, throwing when it cannot; use EnumRoutines.TryParse when the text may be bad.Remove FlagSwitches off the bits of Flag in Value; for a flag enum, removes that option.Toggle FlagFlips the bits of Flag in Value: options that were on go off and options that were off come on.Try From Defined ValueTurns a number into the enum value with that number only if it is one of the enum's named constants; answers false for null, unconvertible or undeclared values instead of throwing.Try From ValueTurns a number into the enum value with that number like EnumRoutines.FromValue, but answers false instead of throwing when the value is null or cannot be converted.Try Get NameThe declared name of Value, or null when no constant has that exact value; unlike EnumRoutines.GetName, this lets you tell "no name" apart from a name.Try ParseTurns text into an enum value without throwing, telling you whether it succeeded; it accepts the same text as EnumRoutines.Parse, including numbers that match no named constant.Try Parse DefinedTurns text into an enum value only if the result is one of the enum's named constants, so stray numbers and unnamed flag combinations are rejected; use it for validating user input.
Procedural Programming
SequenceRuns each of its outputs in turn, top to bottom: one path that does several things in order.For EachRuns its Next path once for each item of a collection, with the item as Current Item; Completed runs after the last.ForRuns its Next path once for each number from Start to End, counting by Step, with the number as Current Value; Completed runs after the last.WhileRuns its Next path again and again while its condition is true; Completed runs once it is false.RepeatRuns its Next path a given number of times, with the pass as Current Index; Completed runs after the last.BranchTakes the True path when its condition holds and the False path when it does not.SwitchTakes the arm whose case equals its value, trying the cases in order, or Default when none does.BreakLeaves the innermost loop at once, as break does in C#.ContinueEnds the innermost loop's current pass and goes on to the next, as continue does in C#.TryRuns its Try path, and when a step in it fails, the first Catch whose kind of failure it is; Finally runs after either, whatever happened; Completed goes on after.Custom EventStarts a path of its own when the event of its name is raised, by Execute Event or by the framework the graph runs on.Execute EventRaises a custom event by name, running the path that starts at its Custom Event.SelfThe instance this graph is running on, to pass to other nodes as an ordinary value.ReturnEnds the routine here and gives back its outputs; a routine may have a Return on each of its paths.Wait ForWaits for a number of seconds, then goes on.Wait UntilWaits until a time, then goes on; a time already past goes on at once.
Primitive Nodes
NumberDefines a literal number.Text LineDefines a literal string.BooleanDefines a literal boolean.Date & TimeDefines a literal date time.ColorDefines a literal color element.PasswordDefines a literal string that is shown as password.TextDefines a literal string that covers multiple spans.PathDefines a literal string that points to a file or folder; Provides mini-navigator utility for navigation purpose.ArrayDefines a literal array of a chosen element type.DictionaryDefines a literal dictionary mapping keys of one chosen type to values of another.
Random
Pick at RandomOne item of a list, picked at random, every item equally likely.Pick From GeneratorOne item of a list, picked with the given generator, every item equally likely; with a Seeded Generator the same picks come out every run.Pick at Random by WeightOne item of a list, picked at random, each item's chance in proportion to its weight: an item weighted 2 comes up twice as often as one weighted 1, and one weighted 0 never does.Pick by Weight From GeneratorOne item of a list, picked with the given generator, each item's chance in proportion to its weight; with a Seeded Generator the same picks come out every run.Seeded GeneratorA random number generator that gives the same sequence every time it is given the same seed: for picks and numbers that come out the same every run, such as a procedural level or a test.Random NumberA random number from Min Value up to, but not including, Max Value, every value in between equally likely.Number From GeneratorA random number from Min Value up to, but not including, Max Value, drawn from the given generator; with a Seeded Generator the same numbers come out every run.Random Whole NumberA random whole number from Min up to, but not including, Max: for a dice roll, 1 and 7.Whole Number From GeneratorA random whole number from Min up to, but not including, Max, drawn from the given generator; with a Seeded Generator the same numbers come out every run.
Processes
Command LineThe command line a program and its arguments make, quoted as the system reads it - for showing in a log what Run Command or Start Process runs.Is RunningWhether a program begun with Start Process is still running.Run CommandRuns a program with arguments, waits for it to end, and answers the code it ended with and what it printed.Run Shell CommandRuns one command line through the system's shell - cmd on Windows, sh elsewhere - waits for it to end, and answers the code it ended with and what it printed.Start ProcessStarts a program with arguments and goes on at once, answering the running program for Wait For Process, Is Running and Stop Process.Stop ProcessStops a program begun with Start Process, and every program it started; a program that has ended already is left as it is.Wait For ProcessWaits for a program begun with Start Process to end, and answers the code it ended with and what it printed.
Boolean Routines
Command Result
ErrorWhat the program printed to its error stream, as UTF-8 text, with the line ending after the last line taken off.Exit CodeThe code the program ended with: 0 by convention when it succeeded, anything else when it did not.OutputWhat the program printed to its output, as UTF-8 text, with the line ending after the last line taken off.SucceededWhether the program ended with code 0, which programs use to say they succeeded.To StringThe exit code and what was printed, for showing.